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": "e26bcebd-ba52-4198-b5a2-f77ff7c9931d",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "99abd4c2-63a2-4ce1-b35a-037855005194",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "e7ab0471-c572-4b22-b051-c57774ca6e57",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "0f3609a7-c0dc-43b3-b23c-702637d6af8e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "44104cfb-a900-4ff7-aa6c-e3182e986409",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "10a48a73-269d-421d-84e2-c0b7f1722438",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "d7232bfd-1892-425f-b958-fd7e703f1f83",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-17T15:30:43.5376534-07:00",
"MeasurementValueNeededDate": "2026-06-17T15:30:43.5376534-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "8c937d93-e512-4be6-bd24-4c18de7e40cd",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "94eadfc2-65d6-45aa-90a5-e4f1a4f5a889",
"EffectiveDate": "2026-06-17T15:30:43.5376534-07:00",
"StateType": {
"StateTypeId": "1c7b9814-c2f4-47ca-86f5-034d132977c6",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "44104cfb-a900-4ff7-aa6c-e3182e986409",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "10a48a73-269d-421d-84e2-c0b7f1722438",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "8871f385-7272-47ec-a980-78528b5c3419",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "7db2cdb3-3436-46be-9256-384d55e602c3",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "6f7d6d48-7285-4941-8c89-a07110b7b2d3",
"EffectiveDate": "2026-06-17T15:30:43.5376534-07:00",
"StatusType": {
"StatusTypeId": "401c815a-cbe2-4fdb-be82-30200532f029",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "44104cfb-a900-4ff7-aa6c-e3182e986409",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "10a48a73-269d-421d-84e2-c0b7f1722438",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "cb0ecef4-d9c6-4147-ae6b-134677484492",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "69ab8664-10d3-46eb-a279-3de896f3bc35",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "6cd550fa-abb5-4fad-9b0b-4a9caa4e144c",
"EffectiveDate": "2026-06-17T15:30:43.5376534-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "934b176a-8be6-4522-a3be-3fd90a1fd9e3",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4b8b1dad-746b-408c-85c3-3f62bb39751d",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "b4c5f788-b348-4101-8126-a0205b8ca52e",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-17T15:30:43.5376534-07:00",
"MeasurementValueNeededDate": "2026-06-17T15:30:43.5376534-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "cbfa7f41-bc72-48e1-9d1f-9282da2ca447",
"CreateDate": "2026-06-17T15:30:43.5376534-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T15:30:43.5376534-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-17T15:30:43.5376534-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "b578eed9-8615-48e0-8b3a-a561d8118e88",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-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": "06563a5a-938b-487e-8c7a-8b10ea03bbf7",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "d63ed0a8-8509-4402-9199-dbb1cfeb322f",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "d7fe427e-37fb-4d1a-b325-2053c43c1ccd",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "6e21b853-a3a9-44ac-b08b-36679767306d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "792ddd3f-c71e-4f42-9299-78bc4336f62e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fdf9057d-a1aa-4843-a2ff-8e71859df2da",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "dade4905-ab40-4bbf-98c5-2e4bced66968",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-17T15:30:43.5532518-07:00",
"MeasurementValueNeededDate": "2026-06-17T15:30:43.5532518-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "79c0fa46-68a5-46fe-aab7-2efb8fd72064",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "37506796-8930-4924-8f95-8488c625c502",
"EffectiveDate": "2026-06-17T15:30:43.5532518-07:00",
"StateType": {
"StateTypeId": "e4a0b4d5-2d2f-4ce1-8dda-736778d26368",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "792ddd3f-c71e-4f42-9299-78bc4336f62e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fdf9057d-a1aa-4843-a2ff-8e71859df2da",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "d7132399-ada5-4359-afaa-d94136754d1f",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "642f6690-9628-4470-89d0-87399787463f",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "aaeb17c4-6f74-4f61-90e0-7921dae8f4bf",
"EffectiveDate": "2026-06-17T15:30:43.5532518-07:00",
"StatusType": {
"StatusTypeId": "2003e16b-a622-4bc6-afb0-27e7b2894a61",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "792ddd3f-c71e-4f42-9299-78bc4336f62e",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fdf9057d-a1aa-4843-a2ff-8e71859df2da",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "78011580-2298-4d52-a930-c016cab1cb2b",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "1d648d3c-becf-411e-8f1f-fcd837991c84",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "698ca336-2ce3-49ad-9fd6-7bfdc9d22309",
"EffectiveDate": "2026-06-17T15:30:43.5532518-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "4b92abd7-70dd-48d7-98b3-38c397c768de",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "51318ca4-fe67-411c-925d-2cd9d6cf5dde",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a8626066-0723-4968-9212-427e9c9c76cd",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-17T15:30:43.5532518-07:00",
"MeasurementValueNeededDate": "2026-06-17T15:30:43.5532518-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ae2fae49-132a-4257-a479-c9c26c9d2a00",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-17T15:30:43.5532518-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "f678277d-c6b6-444b-b5fb-427b43d86e0a",
"CreateDate": "2026-06-17T15:30:43.5532518-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-17T15:30:43.5532518-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}