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": "85ad8d91-0b30-4e24-956d-1151b92ab6d8",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "8eb90b87-179c-40e1-8b3b-25add0affdca",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "88811e85-ebcf-415c-88b5-71859986f733",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "0de46138-6bb6-41ba-b47a-07d82aed877c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "d911a123-35aa-4994-a4bd-186e53ead498",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f4a6e0de-9da6-480e-b4ef-82ce28953dc8",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "8a3ca3b4-810e-4957-b80a-170c016c1f37",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-24T21:34:51.502409-07:00",
"MeasurementValueNeededDate": "2026-08-24T21:34:51.502409-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "6e6871cc-2178-4e2b-a2f9-e863436d0e77",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "15c6f38b-39dd-444d-b1e3-4a5bf217ab53",
"EffectiveDate": "2026-08-24T21:34:51.502409-07:00",
"StateType": {
"StateTypeId": "5b2fa417-79cf-405e-ae47-6a9cf7a38e5d",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "d911a123-35aa-4994-a4bd-186e53ead498",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f4a6e0de-9da6-480e-b4ef-82ce28953dc8",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "63ed6c94-33bf-4bfe-b613-9d14dcc81c58",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "898fd7be-d27d-444b-9a01-1b40cde489b3",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "cdbb8057-74b9-4cfa-b2df-085698bd4cea",
"EffectiveDate": "2026-08-24T21:34:51.502409-07:00",
"StatusType": {
"StatusTypeId": "29a4abe7-0261-46bc-99c2-155d0791581b",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "d911a123-35aa-4994-a4bd-186e53ead498",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f4a6e0de-9da6-480e-b4ef-82ce28953dc8",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "90b899c8-dc50-4bd1-9fec-bab6e7d4cd53",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "52339f37-3ac7-4bc5-88af-cb58ca6558ee",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "5afea0a8-1cdb-4915-851f-5e5c8f13e37e",
"EffectiveDate": "2026-08-24T21:34:51.502409-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "da225537-3b0c-41a7-8c1d-7b53536e60e7",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "50cb94f0-a7fa-4a44-891d-24f8e5f3fb28",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "6158f71f-0c97-4d0d-85c7-85bd412240ba",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-08-24T21:34:51.502409-07:00",
"MeasurementValueNeededDate": "2026-08-24T21:34:51.502409-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "4044510d-2ea3-45af-9315-3c5e2095319c",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-24T21:34:51.502409-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "4251b585-129b-4474-b270-2702d38a4e65",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-24T21:34:51.502409-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": "01ab2a0a-7cb9-402a-838f-1dcc0ec157ee",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "71c25f84-21cb-4db8-8f0b-3d6a333b9918",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "375be44a-a7da-492b-8dd5-533ba1afe267",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "a7a2a773-4735-4cc8-bcb6-479ae746d6b2",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "8985d897-4bce-4877-a986-f115f2c860ac",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "601021c6-383e-4e72-b539-10c31d2c4d8d",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "d24e3ebc-e58c-4af5-85ff-31f165a7e335",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-24T21:34:51.502409-07:00",
"MeasurementValueNeededDate": "2026-08-24T21:34:51.502409-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "5c6e1781-0e8c-4207-8484-3e05a28c8b00",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "756df287-b713-4413-b3eb-a17b98cfc805",
"EffectiveDate": "2026-08-24T21:34:51.502409-07:00",
"StateType": {
"StateTypeId": "2e1b7fc4-a313-4c0c-8848-c54e005e9da4",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "8985d897-4bce-4877-a986-f115f2c860ac",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "601021c6-383e-4e72-b539-10c31d2c4d8d",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "173e6ad6-7b30-4a80-bef5-9be5ffc3c5b6",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "737801fd-27c2-4d5e-b2a8-7de849e0da27",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "1325986f-884e-413a-a2b2-dc5678c27039",
"EffectiveDate": "2026-08-24T21:34:51.502409-07:00",
"StatusType": {
"StatusTypeId": "ee790fa3-c57c-4f98-8044-d7083855323b",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "8985d897-4bce-4877-a986-f115f2c860ac",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "601021c6-383e-4e72-b539-10c31d2c4d8d",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "88b6fe53-ef79-4ed0-af1b-3ecf51182ef4",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2ecbd655-1d64-49e4-9bfc-9ac4356e3fa7",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "2a18c8de-e14b-49b1-95b2-c72ddff55f1e",
"EffectiveDate": "2026-08-24T21:34:51.502409-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "5b31be78-368d-47bb-b6ce-f11af7d00e52",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "bee84124-bab7-40ff-83e0-6d70dd71ad4e",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "1f75c0d5-2c6b-4d9d-8d92-dba7b4822454",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-08-24T21:34:51.502409-07:00",
"MeasurementValueNeededDate": "2026-08-24T21:34:51.502409-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "e79de15c-f1ce-49e3-b193-4fd88eb68b34",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-24T21:34:51.502409-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "144ee270-c3e8-4e74-b89d-52a7e447b973",
"CreateDate": "2026-08-24T21:34:51.502409-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-24T21:34:51.502409-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}