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": "2cb115cf-06bf-4b7c-ae8b-6ed0bd00846d",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "d76c0d4d-36d0-472b-9190-1025fb78457b",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "0ff593e9-140b-41b9-b208-b91377ffa661",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "068151e5-2e7c-4df9-b7c5-9a0a704bf120",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "3de1125a-4a05-4b28-aa1c-0c9fd4db1650",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1620f2ea-0161-4dae-a20e-bc7233bb05d6",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "8dc7a840-38d1-43ff-95fc-b23126592f1f",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-01T08:55:04.9886283-08:00",
"MeasurementValueNeededDate": "2026-11-01T08:55:04.9886283-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "5dc0b0e3-6781-4782-9d54-c5cb97a81119",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "e71e1aea-4e72-4016-af57-352bfe6570f7",
"EffectiveDate": "2026-11-01T08:55:04.9886283-08:00",
"StateType": {
"StateTypeId": "3d9e8ba7-e0e0-4585-9c31-13adbdff6b7b",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "3de1125a-4a05-4b28-aa1c-0c9fd4db1650",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1620f2ea-0161-4dae-a20e-bc7233bb05d6",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "c3ec54dc-d3c5-496e-8a8a-e1cf06d90b2f",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "f8a3df3c-94f2-4504-9fd0-f443b55b2d97",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "d2339794-b5de-4528-8edb-b89e31f3e505",
"EffectiveDate": "2026-11-01T08:55:04.9886283-08:00",
"StatusType": {
"StatusTypeId": "5d46923c-a53c-4b89-91f0-90590e261040",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "3de1125a-4a05-4b28-aa1c-0c9fd4db1650",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1620f2ea-0161-4dae-a20e-bc7233bb05d6",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "0a7d002a-eee4-4cd0-a5cd-c09ca449b0d0",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "1025e0b1-0abf-4c5c-9b86-501b47af7253",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "17086a38-f8ad-4bbb-828e-f41398378c35",
"EffectiveDate": "2026-11-01T08:55:04.9886283-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "1ca3caeb-9751-470e-9503-c234ee650c12",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "267ec7b6-1b97-48ca-a014-e6366a1087e5",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "c2c3139c-9bcc-423d-8762-0cf0314b30fb",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-01T08:55:04.9886283-08:00",
"MeasurementValueNeededDate": "2026-11-01T08:55:04.9886283-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "8b56b863-e3b2-4cde-a64c-0d45a2894dff",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-01T08:55:04.9886283-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "249c7119-21f1-46cc-b039-5174d316bf1f",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-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": "0181a1ba-ec39-433a-b4bd-9a573523f316",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "d9c66b57-4f46-4b43-be8d-1307764d015f",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "9a9810c5-499b-487a-911e-cd007a10f6e0",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "aa98c2f7-a238-4ea6-bf88-d4fa01769c8a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "6d0def4f-49a3-4b0d-bca3-0e901dd4a3d3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0246eb03-1083-48af-9c33-1e71e5f6cf35",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "6a10d51e-7e04-4346-87a2-7d9c51f530fc",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-01T08:55:04.9886283-08:00",
"MeasurementValueNeededDate": "2026-11-01T08:55:04.9886283-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "f01606ce-f830-4050-9806-d0c0c2035a2d",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "7e8a03d8-c1a0-44f2-95b1-35c971ff1b67",
"EffectiveDate": "2026-11-01T08:55:04.9886283-08:00",
"StateType": {
"StateTypeId": "8fd8f7d8-f67b-4bbd-9161-ab7984c19096",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "6d0def4f-49a3-4b0d-bca3-0e901dd4a3d3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0246eb03-1083-48af-9c33-1e71e5f6cf35",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "4526b929-b423-479f-be9b-4bbb9ada5e04",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "10739ef4-f42c-471f-a3b5-0143e58e5dfa",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "ef1e6634-24a9-4e7c-91a7-5a0d8fc45dc0",
"EffectiveDate": "2026-11-01T08:55:04.9886283-08:00",
"StatusType": {
"StatusTypeId": "0eb52c55-9620-4c5c-a5b5-9e07b5098959",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "6d0def4f-49a3-4b0d-bca3-0e901dd4a3d3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0246eb03-1083-48af-9c33-1e71e5f6cf35",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "7a6205f3-3b56-4075-9f5b-0cf43e3827c4",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "1197cc60-1950-4918-9105-6e6d2f1c912e",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "eb284870-d297-40a2-b3e2-1714b8aeaa99",
"EffectiveDate": "2026-11-01T08:55:04.9886283-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "dc5017e7-6bdc-4dde-b08c-793fecf9515e",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "d00724e8-a794-4d24-9448-3a69bee727ce",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "3f66c904-07d0-48d1-b796-8938fad71961",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-01T08:55:04.9886283-08:00",
"MeasurementValueNeededDate": "2026-11-01T08:55:04.9886283-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "13187011-a5c6-4993-a32e-260b3890afdd",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-01T08:55:04.9886283-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "b5969e77-d47b-40a7-a45a-238ac331badf",
"CreateDate": "2026-11-01T08:55:04.9886283-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-01T08:55:04.9886283-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}