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": "507f3c89-68f5-4ae4-a105-176ec85711a2",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "46f68e7e-e035-4c12-8b68-270d33867cfd",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "eeea4748-573f-47f9-bf91-0e4281d0f02a",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "ddec88c5-a9eb-4590-9a44-1f7dd408b215",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "cf01564b-fce2-4a87-ad21-cefc50af096b",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fc32385b-cb7f-4260-9394-48f5d7bb3dc2",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "d022b6b3-6aea-458f-8252-f4f11a85a4a5",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-15T18:00:35.4947872-07:00",
"MeasurementValueNeededDate": "2026-03-15T18:00:35.4947872-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "fa0d4cf0-534d-4dac-a99a-a0dc0e6c83ba",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "42ecddad-25e8-4794-8e29-9e4d8895ecd1",
"EffectiveDate": "2026-03-15T18:00:35.4947872-07:00",
"StateType": {
"StateTypeId": "4cc109e0-cb22-445c-a032-4134eb3e1953",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "cf01564b-fce2-4a87-ad21-cefc50af096b",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fc32385b-cb7f-4260-9394-48f5d7bb3dc2",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "870fd54a-d50f-41a9-9ff0-acbc614b55dc",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "5607a2db-ce03-45f5-b3e0-ed05828f3c98",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "bd7f7824-91bf-45ff-9068-9bacac294df0",
"EffectiveDate": "2026-03-15T18:00:35.4947872-07:00",
"StatusType": {
"StatusTypeId": "2dbbccd4-39c6-4d93-aa72-59ed0118a5eb",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "cf01564b-fce2-4a87-ad21-cefc50af096b",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fc32385b-cb7f-4260-9394-48f5d7bb3dc2",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "79670c4e-4cb5-4443-a8f4-80f46e834198",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "cd6517d3-b50b-430a-b894-70b18837ca7d",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "2c7b7d04-25a7-4b34-aaa9-ffb2c12a3124",
"EffectiveDate": "2026-03-15T18:00:35.4947872-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "745d0873-968e-4275-9cc7-6753ad6cbd49",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "8c2a8eed-ef6d-4b64-902c-8a1f3209d10a",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e4330afb-6495-49f5-afb7-2fa6346d5238",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-03-15T18:00:35.4947872-07:00",
"MeasurementValueNeededDate": "2026-03-15T18:00:35.4947872-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ec7a9176-c0ca-4e19-a3c3-ec79d9ef1a1d",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-15T18:00:35.4947872-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "d5ef20f7-28a5-4b2c-b03e-c8ddbd9b6d9d",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-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": "56d9f9ec-c0e8-443c-a53f-96cdff30fefa",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "c254e5a5-7a5d-4d0f-9fa3-4af0e4c80f49",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "9dc26629-f61b-4023-be2a-b70625009a2d",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "24769532-d1a0-4494-b047-fb1f67badca5",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "6f252e73-a1f2-4aaa-8b71-fc5e0a858fd8",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "7c686021-5a6d-4997-a9c6-812ae22ea2ee",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "42b5be82-a407-46dd-905d-014d398ac667",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-15T18:00:35.4947872-07:00",
"MeasurementValueNeededDate": "2026-03-15T18:00:35.4947872-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "8434e975-f795-4b70-8c3d-96b003f85ea8",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "bc1f9595-0e3e-487b-85cb-42db659e4de6",
"EffectiveDate": "2026-03-15T18:00:35.4947872-07:00",
"StateType": {
"StateTypeId": "3717de7b-8bd3-4d1d-adea-7284dd9b0727",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "6f252e73-a1f2-4aaa-8b71-fc5e0a858fd8",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "7c686021-5a6d-4997-a9c6-812ae22ea2ee",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "01009fce-25ed-417a-9a95-40db6b035db0",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "8c864c63-1c6e-484b-aa3b-19c8c13fdb0c",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "f1ada563-0cf7-48e9-bf9a-1b1668bd9529",
"EffectiveDate": "2026-03-15T18:00:35.4947872-07:00",
"StatusType": {
"StatusTypeId": "bf4b0cd0-b44b-4a4c-b10b-eae210d3106c",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "6f252e73-a1f2-4aaa-8b71-fc5e0a858fd8",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "7c686021-5a6d-4997-a9c6-812ae22ea2ee",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "e3e7c96f-df33-4401-8a9c-e7060ae9a054",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2d23c0cf-6a57-4170-b209-e278a4a3ca2a",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "8305b4a8-ecc0-4544-b6b0-df83e76f385f",
"EffectiveDate": "2026-03-15T18:00:35.4947872-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "e2afc10f-c00b-41b7-966d-eec87faaa045",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4275ba0c-1e5b-4ba7-a923-71b9e58ac357",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "12443e01-e58b-4ca4-851a-ddb9f369d07d",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-03-15T18:00:35.4947872-07:00",
"MeasurementValueNeededDate": "2026-03-15T18:00:35.4947872-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "9858a70e-e062-49b4-8639-bfcc237f78c1",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-15T18:00:35.4947872-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "cae5a075-10bc-446a-8f91-043948b77675",
"CreateDate": "2026-03-15T18:00:35.4947872-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-15T18:00:35.4947872-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}