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": "8f91cd98-02ee-41aa-a05b-fc90cb3cf993",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "c98a04ca-7b2c-4247-85a6-4d339a123ee7",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "99651370-2706-431f-95ff-4b19169985ba",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "f71c6f0a-3c71-41c7-a699-31cdb5b852b9",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "3ec1e038-c53c-451f-a9d6-9bd3c200e444",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "12d75803-9e23-4923-8e7b-11ca9c053358",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "c882b97a-0d15-40b2-bffe-c6054a5359ef",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-15T13:21:20.9044228-07:00",
"MeasurementValueNeededDate": "2026-07-15T13:21:20.9044228-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "37c6d524-4324-43ad-b910-ac8dd9a5512d",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "29b00700-275a-466c-9aa1-6352b26bf555",
"EffectiveDate": "2026-07-15T13:21:20.9044228-07:00",
"StateType": {
"StateTypeId": "97a99a78-b3de-4718-b74b-d161d0a51a8c",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "3ec1e038-c53c-451f-a9d6-9bd3c200e444",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "12d75803-9e23-4923-8e7b-11ca9c053358",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "3fe547c7-8469-4210-9335-ea11ba698e8b",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "f5e3f54a-3b8c-46b6-ae56-e4928603fff9",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "70d86907-428b-4311-9cac-a786b54be5b3",
"EffectiveDate": "2026-07-15T13:21:20.9044228-07:00",
"StatusType": {
"StatusTypeId": "45eb0142-3258-40ce-a9e3-69a5c916bf8f",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "3ec1e038-c53c-451f-a9d6-9bd3c200e444",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "12d75803-9e23-4923-8e7b-11ca9c053358",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "89d3dd11-0004-4e44-9523-d79c8571d32b",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "46b99066-0fc2-4aa5-abcb-4c86ceb91d78",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "41542924-c8d2-4e61-bfa5-3bcd76b24dab",
"EffectiveDate": "2026-07-15T13:21:20.9044228-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "1e5d44ce-1361-42fc-934a-530a30048276",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "c245d313-5f2c-42cf-bb57-755012ad37ee",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e3a25466-4598-43e6-8e7d-2e0bfccfee02",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-07-15T13:21:20.9044228-07:00",
"MeasurementValueNeededDate": "2026-07-15T13:21:20.9044228-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "53dabc73-a202-4dee-bdcb-e3fbc85278f1",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-07-15T13:21:20.9044228-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "8d8fa44a-fdf7-48c5-93eb-a2470ad2830e",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-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": "86ae685a-04ef-47d5-94b7-18f292452e18",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "a682876a-6ab2-4dd3-8af0-8b88130f416d",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "bc366fb5-3b46-46be-992f-3a72688e5717",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "d5778e69-e16c-4a7a-9498-72d3ad13a9b1",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "c03c7651-53fb-476e-8aa6-b5aa3c8bfebf",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f49a1e5f-6cf2-4423-b318-540139ef0370",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "6b6ce523-a20b-4ac3-96a4-ce3caabf38b3",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-15T13:21:20.9044228-07:00",
"MeasurementValueNeededDate": "2026-07-15T13:21:20.9044228-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "7029414c-a8b6-4186-b036-34abb63a71b2",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "0b32bed5-7c5b-4d88-8475-78d529a34b72",
"EffectiveDate": "2026-07-15T13:21:20.9044228-07:00",
"StateType": {
"StateTypeId": "5c67338c-4576-4c53-ac6d-85620fed3f56",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "c03c7651-53fb-476e-8aa6-b5aa3c8bfebf",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f49a1e5f-6cf2-4423-b318-540139ef0370",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "ca4af576-872a-49d5-823d-b9f57d4521d6",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "1dd9cafd-15e3-4bcd-a658-d1393df42d3d",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "87aef007-dc3e-4227-a9a4-8d6a7f6c30f2",
"EffectiveDate": "2026-07-15T13:21:20.9044228-07:00",
"StatusType": {
"StatusTypeId": "34b5cfea-cc36-4a99-ad93-8bf78b6babe6",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "c03c7651-53fb-476e-8aa6-b5aa3c8bfebf",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "f49a1e5f-6cf2-4423-b318-540139ef0370",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "a5cfd8ce-3b78-4a62-8379-f9bc99bdd727",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "591c0191-21dc-4a19-aad4-74ed6a17db84",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "a1f49e3d-6f35-4f14-84ae-2108d9dec9a5",
"EffectiveDate": "2026-07-15T13:21:20.9044228-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "13e92396-121c-4aab-8799-2080fec6535f",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "81a3df1d-a982-49a1-aeb2-be91a0440ef5",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e8dda3a8-f0f0-4b7b-8982-5dea4450aff1",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-07-15T13:21:20.9044228-07:00",
"MeasurementValueNeededDate": "2026-07-15T13:21:20.9044228-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1ef1361f-052c-40e4-b548-dd165aba4934",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-07-15T13:21:20.9044228-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "55475482-ad10-4160-98cb-2b73fb068790",
"CreateDate": "2026-07-15T13:21:20.9044228-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-15T13:21:20.9044228-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}