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": "14184779-663e-427a-9e8f-b6b3e52b1914",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "7da8dd58-2d09-47aa-baf5-50a078b45562",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "68d84026-71a0-4d43-ade8-91f1705e8422",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "7f7afb1c-63f7-41be-83c2-8eee4db2d76f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "3cde5a29-8529-488d-95ba-d863ec39fbb3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1846c387-927d-4705-91f3-a90908185c73",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "badfeb87-ff2b-4c01-80c4-1972b01c0162",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-10-04T02:41:02.2339615-07:00",
"MeasurementValueNeededDate": "2026-10-04T02:41:02.2339615-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "60f17225-13c7-4416-a47c-fa81565f4acd",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "efd5d8f5-bb75-4b68-8490-60188ee89475",
"EffectiveDate": "2026-10-04T02:41:02.2339615-07:00",
"StateType": {
"StateTypeId": "24f15a4c-e575-4f3c-91d4-701f530a741e",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "3cde5a29-8529-488d-95ba-d863ec39fbb3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1846c387-927d-4705-91f3-a90908185c73",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "ceddd506-65df-4d49-ad9a-07fd290d062d",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "08245ad7-8a85-4f55-b012-1b6a9fd4896c",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "ba0d3c02-9166-4cd6-a850-3684e3eeb500",
"EffectiveDate": "2026-10-04T02:41:02.2339615-07:00",
"StatusType": {
"StatusTypeId": "261b2e0d-62cb-43c1-89b9-c412aa5dff4f",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "3cde5a29-8529-488d-95ba-d863ec39fbb3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1846c387-927d-4705-91f3-a90908185c73",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "9c035e4b-f717-4bc7-80b6-dc311390a0e0",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "7f75f102-4634-4761-86b2-de5cf54f76d8",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "b3aa9f3e-3a99-4fc8-b955-2fec9b7b4424",
"EffectiveDate": "2026-10-04T02:41:02.2339615-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "7d6346d2-ab5d-4ff7-bf02-8cb68d5651eb",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "edd27273-53cb-48ba-85bc-240088245353",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4184680a-1831-4c94-bdd4-89c5ebda0b11",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-10-04T02:41:02.2339615-07:00",
"MeasurementValueNeededDate": "2026-10-04T02:41:02.2339615-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "15cb07d4-8e3e-479e-9f34-be6888a9066f",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-10-04T02:41:02.2339615-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "0876b491-717d-4c4c-baf9-b2d8cc8587fe",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-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": "d6370a97-07a8-4e82-9d77-52613f30b969",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "5795975c-453a-43e7-a239-f32e2940f42d",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "a1ceadaa-32ee-43b8-83c2-01cc7fdf7a00",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "329c0676-b87a-43bb-a024-1261611c7de3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f288dbe1-cd16-484d-8ff4-a252b4935a72",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9344ba18-2683-4dba-88e7-006a9e5a6f43",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "cf25a40a-b585-4272-af02-a29a41c895fd",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-10-04T02:41:02.2339615-07:00",
"MeasurementValueNeededDate": "2026-10-04T02:41:02.2339615-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "46db7917-b340-4463-9161-d328ffda81f6",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "89751f7a-28ef-4473-a926-92c5daf1b526",
"EffectiveDate": "2026-10-04T02:41:02.2339615-07:00",
"StateType": {
"StateTypeId": "e15e752e-3254-4dce-90d0-c75522afc604",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "f288dbe1-cd16-484d-8ff4-a252b4935a72",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9344ba18-2683-4dba-88e7-006a9e5a6f43",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "8c1398ee-cf45-4180-ae47-b6eb8e5585c6",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "0dee0b03-867c-452f-b0ff-d0a6e2a34e32",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "11ebeba3-cbcb-4fff-a2b1-2626d24dffa3",
"EffectiveDate": "2026-10-04T02:41:02.2339615-07:00",
"StatusType": {
"StatusTypeId": "f1464054-812a-48c7-8863-2fc050fd0fa4",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "f288dbe1-cd16-484d-8ff4-a252b4935a72",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9344ba18-2683-4dba-88e7-006a9e5a6f43",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "d31d2bb6-2025-47f6-8e1f-485ea64317d5",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a5f2f88b-c63e-4e72-a703-08736a0e989d",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "59f40959-bf0f-41b8-a710-3e06e10d922f",
"EffectiveDate": "2026-10-04T02:41:02.2339615-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "0a75f820-e5b0-43fa-ac7c-5e2e94b92f56",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "513b303a-edad-4f63-9d26-7acdd0a09d21",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a8a4e5ca-c48a-4560-adb6-ca8930782524",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-10-04T02:41:02.2339615-07:00",
"MeasurementValueNeededDate": "2026-10-04T02:41:02.2339615-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "45216926-f6ac-4bec-b4f5-e341fc3a7b6e",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-10-04T02:41:02.2339615-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "dc9a6256-e0fa-4448-ae80-185fca486ce9",
"CreateDate": "2026-10-04T02:41:02.2339615-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-04T02:41:02.2339615-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}