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": "96fb3ed6-d39e-4cd3-9447-63a06a557ae2",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "209e1abe-df61-42d4-b2ae-a6753a47f5f0",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "718e3976-5cb4-4572-b599-bfb61c3ae737",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "915bef82-d409-4e22-bc2d-01cbda918a47",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "7be7ed8b-0589-4c29-821a-bea4d0a76d15",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "86ea1113-63d1-458e-bf47-a7f5a7491c2e",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "84ebef13-b08c-4784-93a8-8c5cefe03e6d",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-04-18T04:57:38.0012989-07:00",
"MeasurementValueNeededDate": "2026-04-18T04:57:38.0012989-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "85c55bea-d021-46ad-891f-b0f02e79e633",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "6d3000dc-b909-4856-9c3d-98f693c7f618",
"EffectiveDate": "2026-04-18T04:57:38.0012989-07:00",
"StateType": {
"StateTypeId": "ca183a36-dacb-40db-a2f9-292646f6aec8",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "7be7ed8b-0589-4c29-821a-bea4d0a76d15",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "86ea1113-63d1-458e-bf47-a7f5a7491c2e",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "76309afa-a9ea-4dd6-95fe-68bd82717b81",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "93a466b8-9d59-4bb0-a845-55d2b4da1be2",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "c3d1bfae-0c84-422d-8727-8cd820fc84e5",
"EffectiveDate": "2026-04-18T04:57:38.0012989-07:00",
"StatusType": {
"StatusTypeId": "1867258e-4085-4473-bb6c-be34fb703669",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "7be7ed8b-0589-4c29-821a-bea4d0a76d15",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "86ea1113-63d1-458e-bf47-a7f5a7491c2e",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "4b1c6633-ca62-4902-8cdd-b78ccfbb1944",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "603131b9-a1f4-483d-8698-4e5c5cc85e10",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "17f77b28-91ba-4863-8182-51e960be4923",
"EffectiveDate": "2026-04-18T04:57:38.0012989-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "39fc737f-6b68-40ae-a231-27753b225f80",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "170a8199-3cf1-4cb7-9c70-38434efad727",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4cde0047-0b87-49de-abf8-38b67e35687d",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-04-18T04:57:38.0012989-07:00",
"MeasurementValueNeededDate": "2026-04-18T04:57:38.0012989-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f00b4553-eae6-4c5e-b4fd-602720f71d31",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-04-18T04:57:38.0012989-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "77ca4f4a-ff12-46b3-b118-d6fd4fb5cc70",
"CreateDate": "2026-04-18T04:57:38.0012989-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-18T04:57:38.0012989-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": "19d2082a-cd2e-4046-b8fc-65b106ced9b4",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "01190eec-4402-4ab2-9e61-a6746ec91529",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "60f10312-2e12-4a78-846d-aaa37845035c",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "3f838522-e413-440d-8b29-9623e3d7b5cb",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "c9d5500c-9fc3-4930-9dcc-cf66b9cd7145",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "115299d2-9682-4bcf-bde6-d5dc2f7b6e3c",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "a3ffb99b-e3ae-4436-82a1-8ec7bff339aa",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-04-18T04:57:38.0168906-07:00",
"MeasurementValueNeededDate": "2026-04-18T04:57:38.0168906-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "7ed7c834-fff0-4033-b2d8-2ad01613fc12",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "1444451e-3251-47c3-ac91-e7f2f9d404de",
"EffectiveDate": "2026-04-18T04:57:38.0168906-07:00",
"StateType": {
"StateTypeId": "0f1873b3-ab22-4f00-8a1a-f3b9ba6221d8",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "c9d5500c-9fc3-4930-9dcc-cf66b9cd7145",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "115299d2-9682-4bcf-bde6-d5dc2f7b6e3c",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "f99dd997-dbbe-479a-b099-6b0106dbb4d6",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2ddc4195-4648-4583-bf9b-463ea1d5b454",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "f01bc867-2940-4e6a-892e-993ccbdd0710",
"EffectiveDate": "2026-04-18T04:57:38.0168906-07:00",
"StatusType": {
"StatusTypeId": "a39dffa0-2ca7-4c87-b6b2-a9b9b236ff78",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "c9d5500c-9fc3-4930-9dcc-cf66b9cd7145",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "115299d2-9682-4bcf-bde6-d5dc2f7b6e3c",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "0f58f3a1-5fdb-43dc-a480-4a424e8454d7",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "dbe782ce-b9d2-490b-8c03-f7073f570fee",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "00823fe7-0f36-4edb-b5cb-2e328e35c66e",
"EffectiveDate": "2026-04-18T04:57:38.0168906-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "4fc56e2b-66d6-4d6f-9a74-2acb1a6d0736",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "e78e7c20-b31b-449c-be63-3552ef70afba",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e0b1dc5c-6074-444e-974f-56b061bd1a12",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-04-18T04:57:38.0168906-07:00",
"MeasurementValueNeededDate": "2026-04-18T04:57:38.0168906-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "76dbc250-276b-49f2-967d-d3bfc79aa625",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-04-18T04:57:38.0168906-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "a8e07c4a-a8d5-46bb-88fc-f1efed148f05",
"CreateDate": "2026-04-18T04:57:38.0168906-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-18T04:57:38.0168906-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}