POST Attachments
Creates a new attachment.
Request Information
URI Parameters
None.
Body Parameters
The attachment to create. AttachmentId should not be filled in.
Attachment| Name | Description | Type | Additional information |
|---|---|---|---|
| AttachmentId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| AttachmentCategory | AttachmentCategory |
None. |
|
| Asset | Asset |
None. |
|
| FileType | string |
None. |
|
| FileSize | integer |
None. |
|
| UploadDate | date |
None. |
|
| Content | Collection of byte |
None. |
|
| SourceSystemId | string |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| CreateDate | date |
None. |
|
| CreateUser | string |
None. |
|
| LastModifiedDate | date |
None. |
|
| LastModifiedUser | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AttachmentId": "be2f98fa-92cc-4819-898e-13e736342cb3",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "662c6fe1-a8bf-4a04-b9f1-de23f409cf13",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "51e2d98a-e8d7-441c-ae7e-21da898b3354",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "0c5b2189-9561-4634-8263-ce37f545aa88",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "a28a2b33-a0e7-4fa7-a6cc-0b1d2ff3b41d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "72724e30-43aa-4f4b-9eba-a045f960ab64",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "ba2f70a0-a26c-4800-9aa0-ce8faf4e560f",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-22T01:42:39.5999168-07:00",
"MeasurementValueNeededDate": "2026-06-22T01:42:39.5999168-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "f21eacea-8e6d-4f4e-be7f-a609d798faff",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "7f1415b5-03c2-4081-950e-a20d7cbca1b9",
"EffectiveDate": "2026-06-22T01:42:39.5999168-07:00",
"StateType": {
"StateTypeId": "ac975c98-35fe-4c6f-a2ea-89485a15706b",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "a28a2b33-a0e7-4fa7-a6cc-0b1d2ff3b41d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "72724e30-43aa-4f4b-9eba-a045f960ab64",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "e2f8045f-bf09-4a56-a3ed-6f99b9d5592c",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "22d1426b-5063-461f-95a8-aec1f64fc104",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "dc9ccc04-38f0-485e-94ea-ae6d272ded11",
"EffectiveDate": "2026-06-22T01:42:39.5999168-07:00",
"StatusType": {
"StatusTypeId": "a3efba34-ea0e-4aae-9f88-5fb2bf6e5094",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "a28a2b33-a0e7-4fa7-a6cc-0b1d2ff3b41d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "72724e30-43aa-4f4b-9eba-a045f960ab64",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "ff17e779-eed7-4cb5-bdc1-8685b30c12a5",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "26c9b4b6-380d-48f1-b68b-7a18f1643db3",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "6e820179-469c-46b6-96e8-d14e0152ec4e",
"EffectiveDate": "2026-06-22T01:42:39.5999168-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "127d4002-32d2-42bf-8a02-efdce7781af2",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "41cba70a-6616-4ad2-b2e0-82b07f4d422a",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "fb7887be-da3e-404d-972b-bd914b28aaa9",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-22T01:42:39.5999168-07:00",
"MeasurementValueNeededDate": "2026-06-22T01:42:39.5999168-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "93a80a46-0131-4b8b-aa27-78b3284a55c0",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-22T01:42:39.5999168-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "76c0ef28-21ec-4af1-bb6d-f2a416e7db73",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 7"
}
Response Information
Resource Description
On success, the created attachment. The Content of the attachment will not be filled in.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Attachment |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"AttachmentId": "a86061c5-f435-4bb0-acae-3defc9de9dba",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "aa98bee9-4f9f-4904-a098-c4c0a015c3a4",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "eaf06c46-6166-4900-9a2e-312bb52f6983",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "0d086046-4be9-4631-a7bd-77e25d0a5045",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "9e1716be-f3ef-46ea-8a79-7e8f6bea6929",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5757c3a6-f330-44a5-aba3-d7b30f3e52b5",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "10bb3294-f372-4f15-9c3a-24d1d1fb201c",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-22T01:42:39.5999168-07:00",
"MeasurementValueNeededDate": "2026-06-22T01:42:39.5999168-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "64652a4d-45e1-49ea-8ea1-09d60a43407c",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "2f5ac144-388e-4836-98ec-864ca4ecc7d6",
"EffectiveDate": "2026-06-22T01:42:39.5999168-07:00",
"StateType": {
"StateTypeId": "8738e2ab-442a-4a80-b9d2-bc523e4f0a6d",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "9e1716be-f3ef-46ea-8a79-7e8f6bea6929",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5757c3a6-f330-44a5-aba3-d7b30f3e52b5",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "adcc6f49-75d2-4a9f-b6f6-cae59024166c",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "49d68561-5dbb-49b1-baf5-b9152ec0b08b",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "7ed14efd-bae6-4722-9427-87409648360b",
"EffectiveDate": "2026-06-22T01:42:39.5999168-07:00",
"StatusType": {
"StatusTypeId": "d6621baf-d2b1-413d-8cc7-6da6bd957880",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "9e1716be-f3ef-46ea-8a79-7e8f6bea6929",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5757c3a6-f330-44a5-aba3-d7b30f3e52b5",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "edc30b4f-0d4b-4b65-bcea-2eadfe450a92",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a7f752ed-355f-45d6-8370-e66e4bafa50d",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "72e6c3b5-8c44-4980-9dc8-ebd9c9eb6664",
"EffectiveDate": "2026-06-22T01:42:39.5999168-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "b6ecf4c2-e88b-44d5-9f07-7ef21c6e9884",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "6b544698-1ef9-4e54-bd73-eb3816d7cde0",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "08556243-e2ad-413d-ab67-4af5787dc4c2",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-22T01:42:39.5999168-07:00",
"MeasurementValueNeededDate": "2026-06-22T01:42:39.5999168-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "120aa5d1-2e63-4117-b5d8-66c11c9ce669",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-22T01:42:39.5999168-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "fe9ad7be-78e0-43e6-ab7e-437473ae7457",
"CreateDate": "2026-06-22T01:42:39.5999168-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-22T01:42:39.5999168-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}