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": "6b7c1023-5334-476c-b382-666afa94438f",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "b20e0245-16fd-4784-9802-d76a0dcc8d7b",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "3fadec01-c8d2-4a4e-a245-1f277b49fc27",
"CreateDate": "2026-11-22T08:29:56.4540047-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-22T08:29:56.4540047-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "ea136b5f-4904-4451-b811-449424792842",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "42e19b66-fa0f-4bff-953b-073aed5e9edf",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "07d6a1a6-7cb1-41c3-b8bf-fbce9e3f3114",
"CreateDate": "2026-11-22T08:29:56.4540047-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T08:29:56.4540047-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "827d0f9c-e18b-47ea-9dc3-bb8742786b10",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-22T08:29:56.4540047-08:00",
"MeasurementValueNeededDate": "2026-11-22T08:29:56.4540047-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "0fb650e8-9054-443a-acf8-ae5845251d7e",
"CreateDate": "2026-11-22T08:29:56.4540047-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-22T08:29:56.4540047-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "cf6958ff-5a91-47b3-a5a9-ea88a255837e",
"EffectiveDate": "2026-11-22T08:29:56.4540047-08:00",
"StateType": {
"StateTypeId": "c1db82f4-e67e-423d-816a-adc7f5146b74",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "42e19b66-fa0f-4bff-953b-073aed5e9edf",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "07d6a1a6-7cb1-41c3-b8bf-fbce9e3f3114",
"CreateDate": "2026-11-22T08:29:56.4540047-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T08:29:56.4540047-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "7e500df2-164f-4573-ba6a-b41ae6768503",
"CreateDate": "2026-11-22T08:29:56.4540047-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-22T08:29:56.4540047-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "3e2cb00c-d5fb-4b18-a63b-269730291233",
"CreateDate": "2026-11-22T08:29:56.4540047-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-22T08:29:56.469642-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "7224dee8-a907-4d9b-8a32-3a5036a1ccbd",
"EffectiveDate": "2026-11-22T08:29:56.469642-08:00",
"StatusType": {
"StatusTypeId": "c95cc20f-5b60-4af2-9e1f-a29d33d58582",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "42e19b66-fa0f-4bff-953b-073aed5e9edf",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "07d6a1a6-7cb1-41c3-b8bf-fbce9e3f3114",
"CreateDate": "2026-11-22T08:29:56.4540047-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T08:29:56.4540047-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "9a713b08-7f4d-42d6-b468-3afe00678482",
"CreateDate": "2026-11-22T08:29:56.469642-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T08:29:56.469642-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "836a3e92-7024-4f33-97f4-41a98d2d2c68",
"CreateDate": "2026-11-22T08:29:56.469642-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-22T08:29:56.469642-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "9814ccc5-c0c1-40df-9aa3-35a1b680443d",
"EffectiveDate": "2026-11-22T08:29:56.469642-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "64df0b7c-7b02-4e59-8d68-26de414a8f12",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "370d3f72-62a3-4af8-8254-6ff2c51996ad",
"CreateDate": "2026-11-22T08:29:56.469642-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T08:29:56.469642-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "ad39f723-8b1d-47ab-92cf-a285fcc36796",
"CreateDate": "2026-11-22T08:29:56.469642-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-22T08:29:56.469642-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-22T08:29:56.469642-08:00",
"MeasurementValueNeededDate": "2026-11-22T08:29:56.469642-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "aab874e6-075a-4ccf-b6a7-cc9f67005ada",
"CreateDate": "2026-11-22T08:29:56.469642-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T08:29:56.469642-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-22T08:29:56.469642-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "afc7be88-1512-4cae-85a1-b9e057565fb3",
"CreateDate": "2026-11-22T08:29:56.469642-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T08:29:56.469642-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": "2d3035af-627b-4688-b54d-56e9d4fc2441",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "d250f4db-9fc7-4b01-a593-6c9b58fe2920",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "e12d4383-ca50-43df-baeb-3cee6ed4dc20",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "cf52ed61-805c-490f-85b1-cb6cf132e3ec",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "5997fe00-6b55-45b6-a586-372c2b522122",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1e88ac80-5a0e-4a40-bef8-a98777d61d0d",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "8a828c7e-edaf-4da4-9482-c6153aa47a01",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-22T08:29:56.4852009-08:00",
"MeasurementValueNeededDate": "2026-11-22T08:29:56.4852009-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "441c1fc2-18ce-4b13-a610-368ba9cfab9f",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "44500cde-a13a-4f6c-a4b6-bcbf4efba9ef",
"EffectiveDate": "2026-11-22T08:29:56.4852009-08:00",
"StateType": {
"StateTypeId": "c9c0acfe-5304-4b7b-8e36-aeb05e59c073",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "5997fe00-6b55-45b6-a586-372c2b522122",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1e88ac80-5a0e-4a40-bef8-a98777d61d0d",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "3f8b3575-a256-43c0-b98f-f7cae40d1a81",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2c6a2e16-cd5c-413d-b5a9-ed3bda091532",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "aeef5e5b-1018-4703-a0c9-42a3c08a3de8",
"EffectiveDate": "2026-11-22T08:29:56.4852009-08:00",
"StatusType": {
"StatusTypeId": "2fea6e51-fd1c-4040-829b-eec9492e4119",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "5997fe00-6b55-45b6-a586-372c2b522122",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1e88ac80-5a0e-4a40-bef8-a98777d61d0d",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "0ae05688-77d5-4203-96d5-e50a1cc67746",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "4daf2380-bb21-404c-bc3f-ff0afb75e2fa",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "ca1f5b02-e58b-4772-a59d-f7b22bed500c",
"EffectiveDate": "2026-11-22T08:29:56.4852009-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "c01f8e8c-f6f8-41e6-974b-583b9a61fc32",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "d81be6e6-5765-4787-a0a9-348f511ce181",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e1fbdecf-5c18-4a26-8d13-2cad71f8fc0e",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-11-22T08:29:56.4852009-08:00",
"MeasurementValueNeededDate": "2026-11-22T08:29:56.4852009-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "e6621d95-1881-444c-b1ac-24a7a7f0c33f",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-22T08:29:56.4852009-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "b608a85e-fe51-489a-b830-b22f310edea9",
"CreateDate": "2026-11-22T08:29:56.4852009-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T08:29:56.4852009-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}