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": "832c1b83-4796-49f7-ae65-8e0a8b5267ef",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "7824f644-db8e-40bd-8664-879749403b22",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "6eda2b6c-5537-4214-b690-94752c1f3ada",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "dc3374e8-2c5a-4d76-b8e0-da4be8d54190",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "c6405813-2fde-4d1d-bba8-0d0d3576b3be",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5c0ead24-370c-4ddb-bbae-ac6f7750bdfc",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "9368487c-d258-4de9-a3a6-bf617d03eca2",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-11T10:21:05.8914419-07:00",
"MeasurementValueNeededDate": "2026-05-11T10:21:05.8914419-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "c3b78ff0-5bc0-450a-902a-f17565d04f25",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "4d2e2aa2-1539-41c8-ae31-f63de6f5479e",
"EffectiveDate": "2026-05-11T10:21:05.8914419-07:00",
"StateType": {
"StateTypeId": "fcd2b960-8cf8-4480-94a0-da5dc47bd7e0",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "c6405813-2fde-4d1d-bba8-0d0d3576b3be",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5c0ead24-370c-4ddb-bbae-ac6f7750bdfc",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "a1a36958-63a7-4270-a7c7-09ca4c14d7b5",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "7f68ae89-a108-47ce-a4d5-5afa6e5ae4c3",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "87251c0d-d059-41cf-8a8c-2821242843e4",
"EffectiveDate": "2026-05-11T10:21:05.8914419-07:00",
"StatusType": {
"StatusTypeId": "e6b44eda-6c8a-4f8c-8edd-02ea6f509516",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "c6405813-2fde-4d1d-bba8-0d0d3576b3be",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "5c0ead24-370c-4ddb-bbae-ac6f7750bdfc",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "c9dfc0a4-508b-47db-b018-0fdd3b77b65f",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "eafb0da2-41ad-46cd-84a0-37bbdd1145b4",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "cb086af3-7b41-4b7f-8c0f-8f5dc96eb3c9",
"EffectiveDate": "2026-05-11T10:21:05.8914419-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "7b443d01-5ecc-4152-a5ca-c4dc827b0d75",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "7dc95648-b2df-437c-a6d0-30413e2a0320",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "3393bb72-30d3-479f-ace4-09d1768947e5",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-05-11T10:21:05.8914419-07:00",
"MeasurementValueNeededDate": "2026-05-11T10:21:05.8914419-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "7be04d57-be52-4e38-899e-79e075e05587",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-11T10:21:05.8914419-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "25678075-e509-4ce1-aec3-cc216d0e8e8d",
"CreateDate": "2026-05-11T10:21:05.8914419-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-11T10:21:05.8914419-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": "eed52349-6d6b-4c4e-b51b-4add4444e214",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "ab530cb0-b323-429b-aa34-4bf1bfc4e315",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "b7870089-3353-4c11-9f99-a3aed0e6ac44",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "ee4f3e22-dab5-456c-8264-3695c3897c56",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "be26e236-c05e-40cd-87a0-c83d9c6ff6b9",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "509c377b-dcc7-4bcf-9c2f-765e8cb0ccae",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "e142ebdc-6e58-413f-bd40-4558ef3f1ccf",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-11T10:21:05.9070665-07:00",
"MeasurementValueNeededDate": "2026-05-11T10:21:05.9070665-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "f5f71e96-3030-485b-bb53-7f1b1177234d",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "660a5e34-0795-4aeb-bacf-42a927464b0b",
"EffectiveDate": "2026-05-11T10:21:05.9070665-07:00",
"StateType": {
"StateTypeId": "72701774-5284-4d3f-9457-69ea77e8c8ba",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "be26e236-c05e-40cd-87a0-c83d9c6ff6b9",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "509c377b-dcc7-4bcf-9c2f-765e8cb0ccae",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "be9bf42f-fcdf-4cdf-8956-32ed2b709375",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "18b2557b-9567-4560-8c64-896c030e2525",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "e746ba10-f88c-493c-b1e3-73bc13e60cd4",
"EffectiveDate": "2026-05-11T10:21:05.9070665-07:00",
"StatusType": {
"StatusTypeId": "94613432-8963-46a0-ad46-bdc5a03ee37b",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "be26e236-c05e-40cd-87a0-c83d9c6ff6b9",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "509c377b-dcc7-4bcf-9c2f-765e8cb0ccae",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "034c2dc0-586c-4341-9780-7ed409d46809",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "5107824f-9328-4b75-abcf-eff4844c77d6",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "abaf5150-dd35-47db-955e-f07bc85dd59e",
"EffectiveDate": "2026-05-11T10:21:05.9070665-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "03e41c70-bbaa-48cc-8aef-f1ba0e885ff3",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "3c849150-5435-45fc-879f-be933ca5e5ad",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d52577bf-69ba-43cb-a1bc-b62a78d109d7",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-05-11T10:21:05.9070665-07:00",
"MeasurementValueNeededDate": "2026-05-11T10:21:05.9070665-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "5661c2b5-8e64-4551-9784-8f28c87835ac",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-11T10:21:05.9070665-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "4e233d7f-23b8-4765-94c9-fa4f9d17a6ca",
"CreateDate": "2026-05-11T10:21:05.9070665-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-11T10:21:05.9070665-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}