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": "4725f27e-de6c-4bd5-9484-d4c5173eea10",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "d2b44236-a657-4612-b36c-1b7182ef1960",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "0159ea44-9957-4344-93b5-29628066c33f",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "ffea2053-884f-4745-bf05-5ba21a874d6f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "6dd056c1-c883-4675-9db1-bf58b8232620",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "7a5fad7f-291f-4f06-8c99-230d3b647903",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "7874de82-bb60-40a1-b0b4-17d607efc98e",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-30T16:53:41.4507393-07:00",
"MeasurementValueNeededDate": "2026-03-30T16:53:41.4507393-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "3291d4a5-e9a8-4963-b37a-79efb41b10d5",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "0bffc155-1cfc-4750-b401-a45d17298860",
"EffectiveDate": "2026-03-30T16:53:41.4507393-07:00",
"StateType": {
"StateTypeId": "cce45972-b410-4cb9-b290-b91c0e3bdf2e",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "6dd056c1-c883-4675-9db1-bf58b8232620",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "7a5fad7f-291f-4f06-8c99-230d3b647903",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "77ae666a-18c0-4914-90e3-6d2374d8d8ee",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "13975e14-1253-44dd-8ed4-632fd791f73e",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "be378b1a-e589-4cb5-80ec-17c50ba780d2",
"EffectiveDate": "2026-03-30T16:53:41.4507393-07:00",
"StatusType": {
"StatusTypeId": "e194b839-3a52-44ef-ab36-f4a622c316d2",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "6dd056c1-c883-4675-9db1-bf58b8232620",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "7a5fad7f-291f-4f06-8c99-230d3b647903",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "6bd87d6d-98a1-4f26-a0fd-55607140d2c7",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "bf120437-0e0e-4293-aefd-6e6f74a834ae",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "2bf26c34-1c52-4fca-8717-eb1a48915fb5",
"EffectiveDate": "2026-03-30T16:53:41.4507393-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "de40d02e-ce2b-4bee-ab99-c009e36ded58",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "9a60a2e5-fc2f-449a-b461-2937f8133bad",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d575f4b3-0b7c-4a00-b031-5f652ecccf78",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-03-30T16:53:41.4507393-07:00",
"MeasurementValueNeededDate": "2026-03-30T16:53:41.4507393-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "04b8daf8-4ede-49f9-aa5f-baf3cdf1204a",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-30T16:53:41.4507393-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "509b7752-caea-49c6-ba7d-857bdd7eb835",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-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": "58144510-d663-41eb-b867-fb75e3bbd9b4",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "aa1754f6-e1dd-43d3-92d1-0213df51b7c9",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "6d88a5bc-0d4e-4da9-aab9-f95edd3e9f74",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "feb27e48-6d0e-499d-8080-50155a66c8f3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "67ba1d9b-4431-4d1a-9d94-e8a87cb3c0a7",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "c2402fbb-3b49-4185-a55c-bee5cf8b2596",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "d75042a5-70a8-4b77-88dd-700a2763316e",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-30T16:53:41.4507393-07:00",
"MeasurementValueNeededDate": "2026-03-30T16:53:41.4507393-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "c9f14e19-3e0d-439d-8681-07bbfa7019fe",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "33d94d4e-65c8-47b2-87af-73b2573ab3fa",
"EffectiveDate": "2026-03-30T16:53:41.4663868-07:00",
"StateType": {
"StateTypeId": "48bb63f2-860b-4191-8492-4c778bfee95c",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "67ba1d9b-4431-4d1a-9d94-e8a87cb3c0a7",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "c2402fbb-3b49-4185-a55c-bee5cf8b2596",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "bdc33b40-4793-47fd-85e7-5a407e5fda59",
"CreateDate": "2026-03-30T16:53:41.4663868-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-30T16:53:41.4663868-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "22b7aef2-f630-4b12-909a-f9ff8837d616",
"CreateDate": "2026-03-30T16:53:41.4663868-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-30T16:53:41.4663868-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "99b76c69-cef4-4545-8569-f3281eeec6e5",
"EffectiveDate": "2026-03-30T16:53:41.4663868-07:00",
"StatusType": {
"StatusTypeId": "9447bc40-cbb8-4de4-b4fd-acc8eca77312",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "67ba1d9b-4431-4d1a-9d94-e8a87cb3c0a7",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "c2402fbb-3b49-4185-a55c-bee5cf8b2596",
"CreateDate": "2026-03-30T16:53:41.4507393-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-30T16:53:41.4507393-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "3b9dd235-6a28-4b90-80e5-60a1c9ea7db1",
"CreateDate": "2026-03-30T16:53:41.4663868-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-30T16:53:41.4663868-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "96750fba-f5b1-416a-9987-2e54dc2aac35",
"CreateDate": "2026-03-30T16:53:41.4663868-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-30T16:53:41.4663868-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "2ad0f20a-3903-471f-ad3d-73e83e6447b7",
"EffectiveDate": "2026-03-30T16:53:41.4663868-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "0d1297b2-fc6d-46cb-a2bf-986440d37a50",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ed1ab1d4-d822-42f8-9bcc-aa45f4aaa0a2",
"CreateDate": "2026-03-30T16:53:41.4663868-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-30T16:53:41.4663868-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "6d8a2851-0cfd-4ed7-a4a8-0f00236336b4",
"CreateDate": "2026-03-30T16:53:41.4663868-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-03-30T16:53:41.4663868-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-03-30T16:53:41.4663868-07:00",
"MeasurementValueNeededDate": "2026-03-30T16:53:41.4663868-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "70d88b3c-8aca-4651-bf9d-6637bb9e5ea8",
"CreateDate": "2026-03-30T16:53:41.4663868-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-30T16:53:41.4663868-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-30T16:53:41.4663868-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "9a808b18-84d1-4662-97c5-bc4eed63c062",
"CreateDate": "2026-03-30T16:53:41.4663868-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-30T16:53:41.4663868-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}