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": "6e89b3e5-34d3-4070-97dc-14e67be036d4",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "3903f52b-0f61-436a-a35c-03cdfcad27eb",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "d3bc8311-5633-4df1-b48d-0fa9f2dbef45",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "8784b7bf-f66b-49ac-8963-3d587a7193fd",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "be134fd0-0edd-4487-abea-90713b792ed3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fb748bfc-e88f-4bd6-9d2a-89ebea3db8d1",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "0babf40d-de08-4c28-bf89-25e37826d353",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-21T11:57:10.9375582-08:00",
"MeasurementValueNeededDate": "2026-11-21T11:57:10.9375582-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "6ec81c0c-ee27-4283-b58b-c2735655ad7f",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "c4025da2-37c9-4b77-8849-741fb4dfb6ca",
"EffectiveDate": "2026-11-21T11:57:10.9375582-08:00",
"StateType": {
"StateTypeId": "2bf35890-635d-4e61-8c81-08f0b048bae5",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "be134fd0-0edd-4487-abea-90713b792ed3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fb748bfc-e88f-4bd6-9d2a-89ebea3db8d1",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "05bed217-bbf5-43a3-bc1b-7ec204b4f544",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "97706d13-e2f4-48da-b7cd-3f5fcb95aa6a",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "bade7c72-a8c6-4f19-9d66-30ae1dd607c2",
"EffectiveDate": "2026-11-21T11:57:10.9375582-08:00",
"StatusType": {
"StatusTypeId": "d3dc197e-4ad7-4167-8e6f-332a5c8a4fd5",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "be134fd0-0edd-4487-abea-90713b792ed3",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "fb748bfc-e88f-4bd6-9d2a-89ebea3db8d1",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "eee27353-c3a0-40d9-869a-870143c985c3",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "191ae064-4445-44cf-9831-4746ad77780d",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "125b56ef-b162-41d5-bad1-253a4472d167",
"EffectiveDate": "2026-11-21T11:57:10.9375582-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "1b4298b7-8cd3-4967-a0ed-00b748f2a894",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "b616016a-c6e8-4bcf-a2c7-2c65d6bf068e",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "98d282fa-e277-466f-8c02-2be2f84ec85c",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-21T11:57:10.9375582-08:00",
"MeasurementValueNeededDate": "2026-11-21T11:57:10.9375582-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d0c789ea-3c92-4252-91c5-8bcbb08106c2",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-21T11:57:10.9375582-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "684ac3bf-67c0-4b4e-a136-60fde89a463c",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-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": "8f7bce6d-b17f-4885-9121-20e8e656a29b",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "292e8801-df90-41c4-91c2-333224083245",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "ace23ce5-d9bd-4b4b-83b5-3790ff80d411",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "fbd1951a-0685-4cde-b427-52e514d5be1a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "6f65038d-11f7-4a4c-a88d-4540b32bdcc5",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "91e6ad4c-187f-44eb-8f2c-a3e57dbefc3e",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "0babed76-e306-480e-80a1-d3bb41e764fa",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-21T11:57:10.9375582-08:00",
"MeasurementValueNeededDate": "2026-11-21T11:57:10.9375582-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "3dfc7c96-f494-4cf7-adfc-cd437fcf0101",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "4b8dc6fe-21e6-4bc8-b094-e193de12de74",
"EffectiveDate": "2026-11-21T11:57:10.9375582-08:00",
"StateType": {
"StateTypeId": "c72e25f9-4dd3-4e92-bb6a-7d64569a129a",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "6f65038d-11f7-4a4c-a88d-4540b32bdcc5",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "91e6ad4c-187f-44eb-8f2c-a3e57dbefc3e",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "1fd862f3-2995-4915-8d98-464527780260",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "d1dee887-358e-49d0-b3a2-b6bc6d0cf434",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "44144dde-c10c-45c1-9483-036b3094cc07",
"EffectiveDate": "2026-11-21T11:57:10.9375582-08:00",
"StatusType": {
"StatusTypeId": "aeda89ba-23fa-49b0-830b-be509e7d5105",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "6f65038d-11f7-4a4c-a88d-4540b32bdcc5",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "91e6ad4c-187f-44eb-8f2c-a3e57dbefc3e",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "26fbf6cd-4075-4ea1-a21e-1f36ab6efc6c",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "995b7805-dfac-434f-975e-1f491953ed16",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "5541afca-707d-47e8-b095-639e85da8fbd",
"EffectiveDate": "2026-11-21T11:57:10.9375582-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "19150ef3-4bc8-40bc-9c31-88c71f5a77ad",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "7f7d9105-c50b-4ec9-985b-0635b6d884ad",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "24534545-55f8-4d62-8973-1bafefe7e537",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-21T11:57:10.9375582-08:00",
"MeasurementValueNeededDate": "2026-11-21T11:57:10.9375582-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "c72a4196-6d0b-456f-8403-671968f61ae2",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-21T11:57:10.9375582-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "6283f222-4a37-412d-ba7c-97e42ec4d2d8",
"CreateDate": "2026-11-21T11:57:10.9375582-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T11:57:10.9375582-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}