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": "ec52382e-0faf-4d84-b08c-9cfd4c86d362",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "a22df95f-d8b9-4e6a-92ea-aac57d968d45",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "7512202e-f4a9-44e3-92fc-036507eb71c0",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "c2f45a92-fc3d-4901-8dae-8c6fbb0d6bfe",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "a7ce090d-293d-425a-844d-cf6c2c7d95b1",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "a44e5874-7df8-4241-83c1-91d218d5ff35",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "a57b8800-94f9-448c-8ea0-2d3124ca9ea6",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-11T22:25:46.5729557-07:00",
"MeasurementValueNeededDate": "2026-08-11T22:25:46.5729557-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "1d3354cb-8a0c-42f5-8d68-e90d844104ab",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "9cea5d61-d9f3-4f1c-befe-181942c286e7",
"EffectiveDate": "2026-08-11T22:25:46.5729557-07:00",
"StateType": {
"StateTypeId": "edd252f3-2297-44f3-b119-621b076890f1",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "a7ce090d-293d-425a-844d-cf6c2c7d95b1",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "a44e5874-7df8-4241-83c1-91d218d5ff35",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "45106246-8b96-41d0-ab00-d7ba675c4be9",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "03d91673-df36-4324-bbc5-6d46a7ce628c",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "cdd6676c-0e57-4a91-a4ef-393f74e65504",
"EffectiveDate": "2026-08-11T22:25:46.5729557-07:00",
"StatusType": {
"StatusTypeId": "8e50eee2-ac25-4721-9c9f-34982b4a9ad2",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "a7ce090d-293d-425a-844d-cf6c2c7d95b1",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "a44e5874-7df8-4241-83c1-91d218d5ff35",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "daae5405-dcbc-4728-be58-f62c2a62c11e",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "30073f36-4a3a-41c1-b062-cdf83b807246",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "20e92324-c860-4446-b0c9-b42050dd08c4",
"EffectiveDate": "2026-08-11T22:25:46.5729557-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "68a79dec-9e9f-413c-b81a-d83c3c19f328",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4e78b98d-d0d9-4c1b-a967-938cc3e6d3e8",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d0a736a7-2183-4fe0-8d76-f35ce2f1c1a8",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-08-11T22:25:46.5729557-07:00",
"MeasurementValueNeededDate": "2026-08-11T22:25:46.5729557-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "59f28548-0c93-45aa-95aa-50cfcc69c826",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-11T22:25:46.5729557-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "c8db5636-ec80-4483-94e5-817473045226",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-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": "82541cdc-f188-4db4-95db-da366dcec41b",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "f0a70cc4-39a7-4508-ac0a-c00d5235d72a",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "92a42bc5-d7ec-4a22-987d-ba81de1ce445",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "9b38d310-7f19-4ae6-9b77-74e8964bd015",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f50e2f07-b1b6-4416-9a44-8a1575c386c2",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "6d63fe93-5d10-4e2a-a3a5-816e8d567117",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "4a6a2cc6-75a4-49c6-95c1-77e50404e591",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-11T22:25:46.5729557-07:00",
"MeasurementValueNeededDate": "2026-08-11T22:25:46.5729557-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "99439cec-9dcc-4bf8-8802-47ab9e74306e",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "5601559d-c472-436a-9cd1-25b292cecc47",
"EffectiveDate": "2026-08-11T22:25:46.5729557-07:00",
"StateType": {
"StateTypeId": "f4d1eab1-1b29-4716-b3ef-80b4993e5cab",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "f50e2f07-b1b6-4416-9a44-8a1575c386c2",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "6d63fe93-5d10-4e2a-a3a5-816e8d567117",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "98700976-c893-4ea9-b38d-8925b00ec6d2",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "23a6c67b-8b42-4ec5-b948-e6f63d396fd8",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "0b07df7f-ceed-4716-91b7-10923dec0090",
"EffectiveDate": "2026-08-11T22:25:46.5729557-07:00",
"StatusType": {
"StatusTypeId": "d537ec71-c5ac-49dc-8832-b0213937da89",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "f50e2f07-b1b6-4416-9a44-8a1575c386c2",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "6d63fe93-5d10-4e2a-a3a5-816e8d567117",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "15f66bbe-042e-488a-88bc-dd9a0a89fe71",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "ac018c45-4326-47d3-97b3-b9695c1df1cd",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "7cc05b6f-f6e9-4b66-b925-96cfde36fb62",
"EffectiveDate": "2026-08-11T22:25:46.5729557-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "ddf6089f-9f5b-4e1a-94c0-5fd82234348f",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5763df62-6b09-4300-99ad-d65018f213aa",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "de1a8c27-8c28-4487-a76e-6e15fad65dcb",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-08-11T22:25:46.5729557-07:00",
"MeasurementValueNeededDate": "2026-08-11T22:25:46.5729557-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "17f6328a-5058-49ea-8b3e-a97ed96bdd4c",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-11T22:25:46.5729557-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "b63f5038-5e8a-4ec7-b3a0-1a92a629bb54",
"CreateDate": "2026-08-11T22:25:46.5729557-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-11T22:25:46.5729557-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}