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": "c40327ec-2d37-47ed-b8c4-de1018ac4c42",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "914ada96-ad96-42b6-8ccd-f9afb1a8fe44",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "ab4e9015-8eda-46f8-8b3b-d92ea78fa8f3",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "feba08fc-f6fb-43fe-bbde-ca2a80501e4d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "764f1fe3-b9c9-4d4e-92d6-99914a6b8256",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b2db92f4-ae48-433a-ae0f-4a44c39684eb",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "bc11173f-d376-44d1-a7ea-244b86a17036",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-04T16:46:00.2018818-08:00",
"MeasurementValueNeededDate": "2025-11-04T16:46:00.2018818-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "16f0dee7-2171-48ba-882e-f529d773c6b2",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "b191e197-8fd2-4972-9917-a461c6814e9c",
"EffectiveDate": "2025-11-04T16:46:00.2018818-08:00",
"StateType": {
"StateTypeId": "0e21f2fa-687e-45b4-bf0e-feb1355b4f43",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "764f1fe3-b9c9-4d4e-92d6-99914a6b8256",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b2db92f4-ae48-433a-ae0f-4a44c39684eb",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "be21bd3b-2279-4b06-ae3b-4d2c3780f03e",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "76088e51-c33c-4bf6-807a-4b349e8ea12e",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "04cf1fe3-fcd2-4f16-9d68-e0bc54386487",
"EffectiveDate": "2025-11-04T16:46:00.2018818-08:00",
"StatusType": {
"StatusTypeId": "56a1e488-e75b-486e-8408-4129a9fa7c12",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "764f1fe3-b9c9-4d4e-92d6-99914a6b8256",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b2db92f4-ae48-433a-ae0f-4a44c39684eb",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "e416605e-499a-4615-8605-c0099efb2c08",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "42be6f37-778c-4217-90b1-998ff2d7e1bf",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "99561a3c-1c6a-4a25-b8da-0e6065e7ccfb",
"EffectiveDate": "2025-11-04T16:46:00.2018818-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "d45b3a45-9a7f-448d-b482-635d0a7bcb37",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "febb107a-eb6d-4037-8734-b1151345df97",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "68024172-474e-430c-b3b2-29f5c76ea64f",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-04T16:46:00.2018818-08:00",
"MeasurementValueNeededDate": "2025-11-04T16:46:00.2018818-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "e21f070a-929b-4d6b-ad10-b757569d7d5d",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-04T16:46:00.2018818-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "a015610a-e6e7-4b06-a8b8-1b19290e70b5",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-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": "21a5b26d-9874-4f9e-99d7-5f6c4794aee1",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "f49d2c52-eb99-42f1-9350-d5035abe4f5d",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "4383671e-49fb-4e87-b7db-eaa50a4c91d7",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "b97cd0c8-fe07-48e2-a463-f01a07f663d0",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "08ebf49e-108b-4b2b-a9ae-acb98cc89c0f",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "8e7f668c-e529-4cc7-a2d1-667253796dfa",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "59e674ae-b641-4e2e-b5db-01cab1e7caa4",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-04T16:46:00.2018818-08:00",
"MeasurementValueNeededDate": "2025-11-04T16:46:00.2018818-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "4bc3b18d-fa6e-4270-933b-1d8610803bbe",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "c9db9b21-1207-453e-b4ca-021c21773a50",
"EffectiveDate": "2025-11-04T16:46:00.2018818-08:00",
"StateType": {
"StateTypeId": "7c287bb7-95cf-41c2-8cba-2798cfb48aa8",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "08ebf49e-108b-4b2b-a9ae-acb98cc89c0f",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "8e7f668c-e529-4cc7-a2d1-667253796dfa",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "ae88e2ad-43d0-482f-94cf-b9e45cf58c5b",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "50625553-44d3-4571-883d-8239362283f2",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "9a70a17a-7a94-4ab9-895a-ba926f21a78b",
"EffectiveDate": "2025-11-04T16:46:00.2018818-08:00",
"StatusType": {
"StatusTypeId": "78fb8076-e487-48b5-bf4d-8b12395cab51",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "08ebf49e-108b-4b2b-a9ae-acb98cc89c0f",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "8e7f668c-e529-4cc7-a2d1-667253796dfa",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "7ff283e9-b3fb-460c-abda-86957488ed8d",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "851e2da7-fd49-4afc-b36a-0c4c9abcc05a",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "3430af17-9fc3-4f0f-bbc4-94365d9ee807",
"EffectiveDate": "2025-11-04T16:46:00.2018818-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "d189fee1-3cd9-408b-a3b2-beb6a87778b6",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "82e90ed9-d62e-47e2-b214-cef0473b2855",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "10ef9528-e6d0-47f6-bced-9a27d48bb425",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-04T16:46:00.2018818-08:00",
"MeasurementValueNeededDate": "2025-11-04T16:46:00.2018818-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "aa388a85-fff5-4979-8ec0-6860ee112d75",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-04T16:46:00.2018818-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "2cc6b19f-b22e-404c-b047-488731c553a6",
"CreateDate": "2025-11-04T16:46:00.2018818-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T16:46:00.2018818-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}