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": "cd63e54b-cf44-42ae-b33a-3c9c79ed5690",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "90353b0f-4640-4ebc-9647-f5538170715d",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "ca0bfa70-aac6-4ff1-b3d9-4a58e7836f39",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "29f5a993-a910-405f-9a9b-a559d5bc0814",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "751007c9-e4e8-463d-9f3f-38fe0b4cfe58",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "71dfa103-63dc-4e06-aa67-5710bad89afe",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "5151be89-fa3a-405f-ab86-214d1747ef5b",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-17T18:57:03.874943-08:00",
"MeasurementValueNeededDate": "2025-11-17T18:57:03.874943-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "477b179b-018a-4cf7-a552-a0f9af2c42fb",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "5abae2a8-e6c8-4555-96ba-0bcd2c39fc92",
"EffectiveDate": "2025-11-17T18:57:03.874943-08:00",
"StateType": {
"StateTypeId": "bc693049-870a-4bfb-b9cf-938f0b26b6ed",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "751007c9-e4e8-463d-9f3f-38fe0b4cfe58",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "71dfa103-63dc-4e06-aa67-5710bad89afe",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "427195bb-7539-424f-ad4e-918cca4fcaaa",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "3186d7c5-b1ee-498f-bf7c-394ada860d6e",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "a84c98dd-eb7a-42c1-b1b9-976aa50e697e",
"EffectiveDate": "2025-11-17T18:57:03.874943-08:00",
"StatusType": {
"StatusTypeId": "f8a81c7f-ab73-4c28-9eca-d31d047a969c",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "751007c9-e4e8-463d-9f3f-38fe0b4cfe58",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "71dfa103-63dc-4e06-aa67-5710bad89afe",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "56a49759-060f-43e4-803c-aa37ae1e6dbe",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "28e95843-389c-42b7-8da9-680b34022459",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "41e78200-1727-457d-b243-4c4b11a2766f",
"EffectiveDate": "2025-11-17T18:57:03.874943-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "a468c4ad-02b6-4e0f-aec6-ca35b59dbf9a",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "2add1980-035d-4b96-8bfa-100dc31afae3",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "13da5b64-b8b2-40f7-b80a-e36829fdddc9",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-17T18:57:03.874943-08:00",
"MeasurementValueNeededDate": "2025-11-17T18:57:03.874943-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "00b0c71a-e0a1-4651-82d1-5843ad3e12f3",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-17T18:57:03.874943-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "ec9d0476-fc16-4df8-a620-f0359017f984",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-17T18:57:03.874943-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": "220c2e70-2ed6-4e13-9c48-803876b7b954",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "ba1c91b1-d339-4599-81ae-5e03b1d3ff67",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "953b0bf3-474a-4c02-ab92-02870a35a0b1",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "1426811b-647f-4b74-83ed-1fe4b07bdd85",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "ba3ea07a-4427-43be-befb-a0e40db8e2ea",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0158c2ee-3714-4ec3-bc50-758665d1a222",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "ae3c0616-8bde-449c-8ac4-81143cd9cd50",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-17T18:57:03.874943-08:00",
"MeasurementValueNeededDate": "2025-11-17T18:57:03.874943-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "feb5d885-2b8d-4616-b0bf-4b852d73346f",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "af50f8f6-0e3f-4002-afc9-129738d8ed14",
"EffectiveDate": "2025-11-17T18:57:03.874943-08:00",
"StateType": {
"StateTypeId": "bfaa8795-b950-49a3-ac7a-1298ff8beda7",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "ba3ea07a-4427-43be-befb-a0e40db8e2ea",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0158c2ee-3714-4ec3-bc50-758665d1a222",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "5bd61097-5cba-42b0-b60d-79690e7a295c",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "f9719c66-8d69-4cb9-b463-c92d10059439",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "a2ef95b4-7549-44a8-83d2-d3971605fea2",
"EffectiveDate": "2025-11-17T18:57:03.874943-08:00",
"StatusType": {
"StatusTypeId": "7f3854c4-31a9-4b07-b550-6d71f0cae2dd",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "ba3ea07a-4427-43be-befb-a0e40db8e2ea",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "0158c2ee-3714-4ec3-bc50-758665d1a222",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "39d85f64-db95-4bd4-9ed2-7acfd637c685",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "9cc966d7-d4b6-4b4c-9d21-9e0b4bb69864",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "8789f7ad-1014-4784-b805-fe46b089d581",
"EffectiveDate": "2025-11-17T18:57:03.874943-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "4c115d82-87ea-4d1b-ac86-18cf6d4a8ae0",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "c6d53a3d-c6d9-4543-97e5-80451bd68be8",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "bd8add6b-6ad1-4914-84da-62d17155fee6",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-17T18:57:03.874943-08:00",
"MeasurementValueNeededDate": "2025-11-17T18:57:03.874943-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "53e0e8d4-d856-4cc5-83b4-071757a21e08",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-17T18:57:03.874943-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "1e6f35fd-fa39-47ef-a631-f64523f510ed",
"CreateDate": "2025-11-17T18:57:03.874943-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-17T18:57:03.874943-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}