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": "75addfb2-dfd7-4bae-9455-9c68c5c1883f",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "ff737455-b13d-4021-9ff4-0eb2e73d9110",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "de8b57a5-d661-411a-8326-04fcf09f9043",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "feda2b1c-2655-48f2-953d-45643db987fc",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f613640f-dbea-46ce-908d-4a2d6e9c814a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "e94acea0-33d2-423b-aa1e-bdd2d6d0bfff",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "dc317c35-0861-4737-aa51-220d6588ef36",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-01-07T13:46:00.572844-08:00",
"MeasurementValueNeededDate": "2026-01-07T13:46:00.572844-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "b92cc437-a0a2-4dbe-b814-40d2346178f4",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "6345549a-0a61-4fcb-9733-40ff8e58a33c",
"EffectiveDate": "2026-01-07T13:46:00.572844-08:00",
"StateType": {
"StateTypeId": "3ee6cc17-f600-4617-8793-345f83b4b63b",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "f613640f-dbea-46ce-908d-4a2d6e9c814a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "e94acea0-33d2-423b-aa1e-bdd2d6d0bfff",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "c4563b63-3b3a-4535-a0b2-245e44f8e0f3",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "94118ede-28fa-4999-98f2-02b8156422ae",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "b5ebb013-bef3-4b38-9057-203d519cbae7",
"EffectiveDate": "2026-01-07T13:46:00.572844-08:00",
"StatusType": {
"StatusTypeId": "74418208-c41e-4753-80e7-078a17ca10ae",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "f613640f-dbea-46ce-908d-4a2d6e9c814a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "e94acea0-33d2-423b-aa1e-bdd2d6d0bfff",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "e564c5d9-d68b-4937-a31a-20fb8386309e",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "3baafaf5-6e19-4b05-a8bb-7bc03cade6b6",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "40391d3e-8f77-4cf6-9913-ddf892434284",
"EffectiveDate": "2026-01-07T13:46:00.572844-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "dbd74269-924f-4719-bf76-139b042041f9",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4b05df9f-a094-411b-a1e1-7cece5b765d0",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "252ed3ee-905a-41df-bd96-28b7ae3a9602",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-01-07T13:46:00.572844-08:00",
"MeasurementValueNeededDate": "2026-01-07T13:46:00.572844-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "15d8218a-cfb4-4b0d-97ff-70f58790d530",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-01-07T13:46:00.572844-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "8dc87935-b406-4b3a-a377-86ab2ebbbe60",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08: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": "520c3736-0d94-41cd-9cc1-b16410f51a54",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "2b714832-2dbb-48c3-8962-7c0a2b942ba2",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "a3b8d652-d20b-404f-8ccd-3afa04e49234",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "73e95892-e4f9-4101-9bfe-0f16d20d834b",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "fbf422bb-737d-4c3e-bc9f-d00ec4047128",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "3388e8dc-7d70-44f9-b532-5ef665d02e6b",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "d5004b74-4bd7-4c7c-bc31-63e98baeefa5",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-01-07T13:46:00.572844-08:00",
"MeasurementValueNeededDate": "2026-01-07T13:46:00.572844-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "9cd57f06-006f-4914-83b3-e93a4fb5a864",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "a629a3b1-4c0e-4305-b376-568b825be4e7",
"EffectiveDate": "2026-01-07T13:46:00.572844-08:00",
"StateType": {
"StateTypeId": "8b2e42fc-1023-450c-a141-e8e9d7f53aae",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "fbf422bb-737d-4c3e-bc9f-d00ec4047128",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "3388e8dc-7d70-44f9-b532-5ef665d02e6b",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "a3d0a1d1-a6e3-4cf8-be51-45027a8181d5",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d156de1a-ba13-492f-ad25-a13f459be6b1",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "56f949c9-f30c-43c4-8aae-78e808db5317",
"EffectiveDate": "2026-01-07T13:46:00.572844-08:00",
"StatusType": {
"StatusTypeId": "5647bc6a-dfc9-4ccb-8522-b474bf261d7f",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "fbf422bb-737d-4c3e-bc9f-d00ec4047128",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "3388e8dc-7d70-44f9-b532-5ef665d02e6b",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "64d9f370-6b67-49f0-bbd0-c453f6941965",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "ef397475-0428-4ae2-8eaa-6d299fb11016",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "3efb216d-263b-42e6-a7b2-645090dfd23b",
"EffectiveDate": "2026-01-07T13:46:00.572844-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "44f1ba4f-6f16-40c4-9cee-25e2c9471882",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "89cd07d2-e24d-4e33-a58c-d98e9c2fbec6",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "f13d0a6b-f86e-4e58-9c06-c99dac125d3b",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-01-07T13:46:00.572844-08:00",
"MeasurementValueNeededDate": "2026-01-07T13:46:00.572844-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "97441124-6a31-4749-8123-c943331910f0",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-01-07T13:46:00.572844-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "b651baab-e49d-456b-b5da-8fa4e4f20f40",
"CreateDate": "2026-01-07T13:46:00.572844-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-07T13:46:00.572844-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}