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": "f39c5e51-5407-4133-b0f3-a8190177705c",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "bb4f6e18-7e6c-4260-99d1-4814e42529d3",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "0f28a6ed-461e-4aca-a4d4-54433ff4546c",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "a87c3aae-d288-41f2-abd0-f90d402620f3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "db33fdaa-f6ab-4c52-8609-9da58abbd473",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9b89d10f-24f7-41f0-a870-5b65608477dd",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "c1eb0ce0-519d-4066-9da2-0a9076f52373",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-01T20:26:26.2681087-07:00",
"MeasurementValueNeededDate": "2026-06-01T20:26:26.2681087-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "46ca5e08-0f9a-4373-b230-5a5723e6e5a8",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "c96d00d1-39e2-4bc8-bf6b-8945b6b45ae0",
"EffectiveDate": "2026-06-01T20:26:26.2681087-07:00",
"StateType": {
"StateTypeId": "ae85953f-3d90-4af8-b619-48580c5cd13a",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "db33fdaa-f6ab-4c52-8609-9da58abbd473",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9b89d10f-24f7-41f0-a870-5b65608477dd",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "e0ed5ddb-da87-4df8-8207-35eaee0ec136",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "eae2e263-ecb3-404b-b80f-60a7604e4ee4",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "4abbbff1-9a5f-41c3-9642-1fc1acf9f326",
"EffectiveDate": "2026-06-01T20:26:26.2681087-07:00",
"StatusType": {
"StatusTypeId": "6eaf2866-5997-402a-a253-513a26e14732",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "db33fdaa-f6ab-4c52-8609-9da58abbd473",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "9b89d10f-24f7-41f0-a870-5b65608477dd",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "4c505802-bc1c-4303-bc72-c5555234961a",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "50e8a9bb-a0f8-412e-b906-87b81fd7c302",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "3cdcba3f-7335-4832-847d-e81ef54f6845",
"EffectiveDate": "2026-06-01T20:26:26.2681087-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "64f0dbe0-cfa6-4ab8-ba18-cc1039c4b07f",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4faede7b-7382-40ae-97aa-4ec2fa62b25d",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "68a0f60a-b580-437d-af29-bde14650db9d",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-01T20:26:26.2681087-07:00",
"MeasurementValueNeededDate": "2026-06-01T20:26:26.2681087-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "81866894-bc29-47e1-968d-8775566531e3",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-01T20:26:26.2681087-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "3aa63559-4de0-4c22-bd6e-7b79304a6a68",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-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": "e13feb4b-0f0d-4b20-8e45-2d977214110d",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "84077887-1135-4114-a713-7bae46e3c09c",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "7dd459fc-96cd-4f19-8bae-8361aff523ab",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "bf5178a5-edfd-4dd2-b789-37995c6515b7",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "076f92b5-553d-44d4-9495-919283842750",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "56f96a01-a939-45a2-98dc-65fc3f17f576",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "6c34a2d7-8bfd-4c10-a9f9-f9d022828b1f",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-01T20:26:26.2681087-07:00",
"MeasurementValueNeededDate": "2026-06-01T20:26:26.2681087-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "aca7fc94-f725-40ea-ad35-b4d4305c4144",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "e86c15fd-97c0-4d3c-bba8-0253c68c4ddc",
"EffectiveDate": "2026-06-01T20:26:26.2681087-07:00",
"StateType": {
"StateTypeId": "a1e69cdf-5681-424a-98a6-b5ef07ea334c",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "076f92b5-553d-44d4-9495-919283842750",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "56f96a01-a939-45a2-98dc-65fc3f17f576",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "499b892f-2ff8-4937-aadf-2020ec0daa4f",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e228147d-25d2-4df6-82c1-f65f7ec4c0a8",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "9a0c1b93-e209-49f4-a9f4-90f908c3fbfc",
"EffectiveDate": "2026-06-01T20:26:26.2681087-07:00",
"StatusType": {
"StatusTypeId": "42209d40-11b4-4fad-89a7-b5876ad59709",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "076f92b5-553d-44d4-9495-919283842750",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "56f96a01-a939-45a2-98dc-65fc3f17f576",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "83462e19-1d68-49ef-a6d2-41ef94230ba5",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "a6a321ca-9cf3-4f43-b643-7998721a5387",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "17578103-1396-4476-a4b3-e4bdd26d5c80",
"EffectiveDate": "2026-06-01T20:26:26.2681087-07:00",
"WellPurposeType": {
"WellPurposeTypeId": "4211e787-fede-4589-80c1-754ad1f02de4",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "7f78887e-b130-4aa2-a678-c9171e4030e4",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "2b8494a3-6cf9-4698-b280-de7708ed8cfe",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2026-06-01T20:26:26.2681087-07:00",
"MeasurementValueNeededDate": "2026-06-01T20:26:26.2681087-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "0700f22b-7975-401c-a199-71385ac4bf16",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-01T20:26:26.2681087-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "4bc84c10-d2a1-40ca-88a5-3fc4f017c78f",
"CreateDate": "2026-06-01T20:26:26.2681087-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-01T20:26:26.2681087-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}