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": "00900bd1-d527-4d69-b142-5e6a7f627f8e",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "ac7a2c69-6d39-4416-b86d-c65b97d71d85",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "f27b0979-bfd6-42da-9820-8ccf83d1710c",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "db0df209-df66-4329-b96b-1ae1997d262a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "2a1df4da-2de4-45e9-adcd-0d3ef7a4180f",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b2e13343-130b-4309-b6cf-65965707dd1a",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "dc53367a-8d49-4aa7-a59f-c01d1491e5f7",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-09-13T23:38:20.1262289-07:00",
"MeasurementValueNeededDate": "2026-09-13T23:38:20.1262289-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "294a0dcf-4d0f-433a-810b-46020c7cde28",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "a6591a4b-9188-45dc-bef3-da8e3d893a00",
"EffectiveDate": "2026-09-13T23:38:20.1262289-07:00",
"StateType": {
"StateTypeId": "316a99a2-73c1-41c5-8329-f7d0e13f1417",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "2a1df4da-2de4-45e9-adcd-0d3ef7a4180f",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b2e13343-130b-4309-b6cf-65965707dd1a",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "acd0843d-aeaf-4265-b807-c588014bbbb4",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "b415c1af-a2a0-4926-82b2-87c6d1e8f6cf",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "29d3f6e4-7da5-4e1a-882c-db6830b612ad",
"EffectiveDate": "2026-09-13T23:38:20.1262289-07:00",
"StatusType": {
"StatusTypeId": "fc341e5d-c919-4517-ad9c-48bf430bf56a",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "2a1df4da-2de4-45e9-adcd-0d3ef7a4180f",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "b2e13343-130b-4309-b6cf-65965707dd1a",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "0a816811-82a3-4453-8a35-fb268bb6b43a",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "cb661b9b-7d67-440e-ba06-ddd73cedf376",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "88ce22e5-54f2-4685-8385-ec3effd9160b",
"EffectiveDate": "2026-09-13T23:38:20.1262289-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "fd74a26e-1d80-450e-87b8-ef1f5163c177",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "3d06c623-3e89-48a8-a456-5db9f282d214",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "cbbf464c-70d4-4066-9ee6-6c4ee957d82d",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-09-13T23:38:20.1262289-07:00",
"MeasurementValueNeededDate": "2026-09-13T23:38:20.1262289-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "b2221be5-0688-453d-8c5e-4533638991f0",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-09-13T23:38:20.1262289-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "242d8a80-01db-4a22-a10a-a6bb3e7d297c",
"CreateDate": "2026-09-13T23:38:20.1262289-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T23:38:20.1262289-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": "16d455b5-49f7-4d55-995e-f136899b6af9",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "40faded3-ae32-4a26-bf4e-bc7775f5c2ff",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "9d6d0819-3779-4003-a40c-05a6c7ded4ae",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "77e56869-007e-486f-af4a-a38b6969a92a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "a8a10472-b519-4bda-b9de-11944c574967",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9047c981-3d9b-40e4-a99f-237c8e44a04a",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "164c2b6b-e417-4394-bad8-3ab3d195760e",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-09-13T23:38:20.141854-07:00",
"MeasurementValueNeededDate": "2026-09-13T23:38:20.141854-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "228d8d5c-4640-4b2c-aabe-c08196e79c33",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "3f92a6b6-182f-49f7-ba0e-978aa573164d",
"EffectiveDate": "2026-09-13T23:38:20.141854-07:00",
"StateType": {
"StateTypeId": "4510a48e-ce4b-4cd7-9a84-cccb791f4a1e",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "a8a10472-b519-4bda-b9de-11944c574967",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9047c981-3d9b-40e4-a99f-237c8e44a04a",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "95e493c9-d915-4546-aed0-4a9f923132a0",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "0e9424f1-c681-4c37-9bf1-e23011addefc",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "76eda90c-aa11-4fa9-b783-dcb48b1839f0",
"EffectiveDate": "2026-09-13T23:38:20.141854-07:00",
"StatusType": {
"StatusTypeId": "ff8badaf-36f9-4316-b14e-50267b90c66e",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "a8a10472-b519-4bda-b9de-11944c574967",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9047c981-3d9b-40e4-a99f-237c8e44a04a",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "2e9deae0-e513-411a-b568-08fd78bf0aef",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "3e5e2c17-6709-439e-b04a-eb53f0035be0",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "f67fb2ff-f619-404a-a031-ad12117479fa",
"EffectiveDate": "2026-09-13T23:38:20.141854-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "7f054a68-4f5a-428e-b078-4d6d53a1b4e1",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "e7c9d7ba-8f36-4cd1-bdd0-178206fda2e6",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "9750a201-b12e-40e9-8626-c6cfb74ce7d3",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-09-13T23:38:20.141854-07:00",
"MeasurementValueNeededDate": "2026-09-13T23:38:20.141854-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "86aa06aa-978f-45dd-b39f-a1c13ccd8d9e",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-09-13T23:38:20.141854-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "3d90f950-f54c-4410-992c-14fd99ea836f",
"CreateDate": "2026-09-13T23:38:20.141854-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T23:38:20.141854-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}