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": "11f6763e-abf3-41e1-91f5-792bffc5b062",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "8de9791d-63ba-4383-a6c3-adbd85c8c9e1",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "cc389f48-d0de-4665-89af-96e6f2d1680e",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "addf26c6-6983-479d-876d-b1cffefd4bf6",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f65eb683-8e38-417e-9f0a-d0f0823d676b",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "27d77f30-1987-43ec-a68e-4a11246132ff",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "f4f78133-95f4-4c08-af3e-097ff1e29b15",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-17T04:33:37.5220263-08:00",
"MeasurementValueNeededDate": "2025-12-17T04:33:37.5220263-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "5fd1a35f-6dfc-46be-9e3e-945bf869348f",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "8a422c8d-151d-4b44-8924-68ac46bb3e72",
"EffectiveDate": "2025-12-17T04:33:37.5220263-08:00",
"StateType": {
"StateTypeId": "6bcba895-59ad-4e77-a904-744d68b28fe2",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "f65eb683-8e38-417e-9f0a-d0f0823d676b",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "27d77f30-1987-43ec-a68e-4a11246132ff",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "b39bb314-f8bb-4ee6-895b-c1da20887861",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "33b9f5f5-0d5e-467f-b79c-c34fee11bc54",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "618d6768-0a1a-4be3-a364-55a3f2ebc764",
"EffectiveDate": "2025-12-17T04:33:37.5220263-08:00",
"StatusType": {
"StatusTypeId": "f032f842-fd67-467e-a178-df447eb7e7ec",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "f65eb683-8e38-417e-9f0a-d0f0823d676b",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "27d77f30-1987-43ec-a68e-4a11246132ff",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "a033fa23-4b3f-4761-a632-88a0bc16759f",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "3b986b62-dea1-4929-93be-27cd8217abbf",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "804c447e-69ff-4940-8f14-4a358b46c518",
"EffectiveDate": "2025-12-17T04:33:37.5220263-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "bb1205c3-c7c6-4dc1-94a4-ef0b21013f1a",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "1a645e8b-7220-4ea4-bbe9-2e296d2cfc58",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "12fdd006-91d3-40a4-9647-56eeb7525a63",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-12-17T04:33:37.5220263-08:00",
"MeasurementValueNeededDate": "2025-12-17T04:33:37.5220263-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "42f5343d-47e9-4780-b556-b51b63c3a76e",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-17T04:33:37.5220263-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "fcd4e6a8-9512-4308-a3eb-dfc9b99b01a9",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-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": "31db16bc-f2bb-4e67-99f7-0da226065f46",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "5f8cb384-74be-4c15-b461-f3fa63c6f2e8",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "d1a84c9c-2a14-4efd-85b0-6ec66cd9417c",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "5f78a66b-0670-48bc-8eda-7215c0e3dcc1",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "4f874220-5178-4cb0-99be-4ff9fd361d8a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f300dccb-3f94-4dc5-bf94-b9683818529b",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "ceab0f44-1b30-4ffc-81c8-5dd0e017da6c",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-17T04:33:37.5220263-08:00",
"MeasurementValueNeededDate": "2025-12-17T04:33:37.5220263-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "48ae6ba4-5641-4940-8880-c72fc0a9958a",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "17bd7d03-5e14-4054-8a87-d8422f2af84e",
"EffectiveDate": "2025-12-17T04:33:37.5220263-08:00",
"StateType": {
"StateTypeId": "de991155-cb81-452d-96a5-2680b1551326",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "4f874220-5178-4cb0-99be-4ff9fd361d8a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f300dccb-3f94-4dc5-bf94-b9683818529b",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "c4af9ceb-2894-4c9c-85ba-3b6f3dc95769",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2966ddcc-40db-4d65-8197-5843e50bb4b3",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "159d0562-375d-42b7-8b8d-ad1e9a9e704d",
"EffectiveDate": "2025-12-17T04:33:37.5220263-08:00",
"StatusType": {
"StatusTypeId": "0b25ca19-a806-41e6-b803-3211a9c7b8b2",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "4f874220-5178-4cb0-99be-4ff9fd361d8a",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f300dccb-3f94-4dc5-bf94-b9683818529b",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "d436bdc6-dfde-4a85-af01-bcd444a518b4",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "cf6f84ee-88f2-45e1-b877-131b7d5bdcea",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "2ef8bcff-0a9e-457b-88f9-66c0e07bc9c6",
"EffectiveDate": "2025-12-17T04:33:37.5220263-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "35d9c74e-e9bd-45d0-a69d-70517bd0e031",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "eeb7fc55-4ddf-4f41-aa10-acda279814c3",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "0fedb2ba-4fdb-450d-9373-d769d370d373",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-12-17T04:33:37.5220263-08:00",
"MeasurementValueNeededDate": "2025-12-17T04:33:37.5220263-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "b06f5e20-c834-41e1-9c1f-cfa69b7ce7ca",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-17T04:33:37.5220263-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "472bd630-1544-4f2c-ba32-254122c41d68",
"CreateDate": "2025-12-17T04:33:37.5220263-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-17T04:33:37.5220263-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}