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": "cc05887e-0728-466c-a5c8-53c591d17f96",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "d5d5ae8a-bc2e-4a4e-a3b5-322162207860",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "a1ef4d2d-9e74-475b-9963-98dcdfe7b35d",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "98350484-84f6-410c-aa55-44ecf5f21aa3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "65b2c426-49b6-4a80-afda-5091699bc8ff",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0092d0b7-ce81-426c-a136-669e527542d0",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "8c73f988-1ff2-4c76-bd03-f5c08c8336c4",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-04T17:26:28.3004622-07:00",
"MeasurementValueNeededDate": "2026-08-04T17:26:28.3004622-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "9df4f5c3-8ba2-4f8f-bf92-ba4769c8b5b4",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "d090bd6a-99e4-4def-82ea-d12cfa93bc26",
"EffectiveDate": "2026-08-04T17:26:28.3004622-07:00",
"StateType": {
"StateTypeId": "154448ec-4f07-465e-8164-1a9de2720d52",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "65b2c426-49b6-4a80-afda-5091699bc8ff",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0092d0b7-ce81-426c-a136-669e527542d0",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "dff34ad5-0fc4-4447-a736-ca2ae38f4859",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "dbbc2a9c-5d27-4913-97ca-6e890ec95751",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "0cd99e23-b10b-4e94-b50c-694589332dc2",
"EffectiveDate": "2026-08-04T17:26:28.3004622-07:00",
"StatusType": {
"StatusTypeId": "d1658396-4127-402e-93fc-10fa2c9b06b3",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "65b2c426-49b6-4a80-afda-5091699bc8ff",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0092d0b7-ce81-426c-a136-669e527542d0",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "8f34a63a-09d9-4f4b-9fdb-2188482d27c3",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "ab5b19b4-d260-4b30-b41b-1c213627311b",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "7aee978b-d498-4118-8f89-12f0ec61449e",
"EffectiveDate": "2026-08-04T17:26:28.3004622-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "73d5fa90-6015-4d13-8ecf-0897b05f9aae",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "47989e5d-8fc5-40fa-af61-a1d6f60c76f5",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2a2389b1-0845-4671-ab00-2233ae0b8d04",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-08-04T17:26:28.3004622-07:00",
"MeasurementValueNeededDate": "2026-08-04T17:26:28.3004622-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "5a5f33b0-92f1-46c0-8bd9-48e895c10cb6",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-04T17:26:28.3004622-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "5cf7fd9b-0ec4-4e40-b056-9e5de6931127",
"CreateDate": "2026-08-04T17:26:28.3004622-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-04T17:26:28.3004622-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": "2d6629e0-6615-4081-9142-e63326733a83",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "4d3a4708-2351-465a-ab1b-f96fde659109",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "d1756333-0519-4696-9d65-cfb6d47290fa",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "7e18fae3-8491-4f43-bc33-708eadfb614d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "895bfd25-7802-486c-b0a0-00cefbf6374d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9d7f8f61-ac77-430e-8013-06bb1cc8dce2",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "69acc3ad-0dcc-459a-be17-c77e9897ad6c",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-04T17:26:28.3160889-07:00",
"MeasurementValueNeededDate": "2026-08-04T17:26:28.3160889-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "8761ff55-22bc-4ff8-9708-4c406b5848c5",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "d0c545fd-b193-4837-8804-1f0e12697ce4",
"EffectiveDate": "2026-08-04T17:26:28.3160889-07:00",
"StateType": {
"StateTypeId": "c5f26ef1-056c-4469-8976-f56197344124",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "895bfd25-7802-486c-b0a0-00cefbf6374d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9d7f8f61-ac77-430e-8013-06bb1cc8dce2",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "bdabc062-42f2-4ef6-8e61-7e9cd0e2478f",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "b9be1827-f474-4016-9f72-6e368e3959f3",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "b7782217-a055-4355-828f-76f8e705f57d",
"EffectiveDate": "2026-08-04T17:26:28.3160889-07:00",
"StatusType": {
"StatusTypeId": "8e7c4bb5-583c-4cc1-884c-7f799b8a2eb6",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "895bfd25-7802-486c-b0a0-00cefbf6374d",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9d7f8f61-ac77-430e-8013-06bb1cc8dce2",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "4c3ca50b-34f5-4203-9e7f-1746c8b6d6c2",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d0d73ad3-5f99-42b7-9399-ced44f7e9c89",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "8d214b83-cef9-46f7-8789-3491f7946497",
"EffectiveDate": "2026-08-04T17:26:28.3160889-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "060f7dff-0ba6-4fb5-9499-36665b7c5bb2",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "be681917-a4b5-4b22-b7a7-ac83daccc12b",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "c941eb8d-52e7-492e-8254-b1fdbf4dea07",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-08-04T17:26:28.3160889-07:00",
"MeasurementValueNeededDate": "2026-08-04T17:26:28.3160889-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "05003a6a-7897-4312-8438-36e5d11e23e7",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-04T17:26:28.3160889-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "5bf93cd0-812b-47ad-ae63-e85a51ff3f1c",
"CreateDate": "2026-08-04T17:26:28.3160889-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-04T17:26:28.3160889-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}