POST Attachments
Creates a new attachment.
Request Information
URI Parameters
None.
Body Parameters
The attachment to create. AttachmentId should not be filled in.
AttachmentName | 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": "d24342c5-65fc-43a2-b920-0a5549e18743", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "0110f7c7-92ab-4ec4-bc89-1188669a5a28", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "75116069-6de0-43eb-96a5-b9c546796174", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "c6ea335d-332c-43bc-ad2c-a97e4704de00", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "1d2d6602-9724-4a8a-b5aa-7be8c12ffd05", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b87c8a97-9941-4f5e-9f13-6e2a27b0bb9a", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "bb821b14-2a02-4b05-9df7-c17470fc8991", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-19T01:30:51.7447222-07:00", "MeasurementValueNeededDate": "2025-07-19T01:30:51.7447222-07:00", "SourceSystemId": "sample string 3", "CompanyId": "1827642e-3a7d-473a-9000-d939536cb113", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "61900855-6f64-4d34-8ee2-2f53d433d544", "EffectiveDate": "2025-07-19T01:30:51.7447222-07:00", "StateType": { "StateTypeId": "5a325271-2ba4-4e73-8bfa-d2a2dc6283c6", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "1d2d6602-9724-4a8a-b5aa-7be8c12ffd05", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b87c8a97-9941-4f5e-9f13-6e2a27b0bb9a", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "5e7aca7f-19db-4a7a-8612-ff22a2addbdd", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "68584e16-90db-4fb2-b66f-3aaccee58f7a", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "fe3c29d0-cb47-4bdc-a8f5-0e486ef8d4b5", "EffectiveDate": "2025-07-19T01:30:51.7447222-07:00", "StatusType": { "StatusTypeId": "5f7e2811-c1c6-40f4-881b-2af1fd1f9953", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "1d2d6602-9724-4a8a-b5aa-7be8c12ffd05", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "b87c8a97-9941-4f5e-9f13-6e2a27b0bb9a", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "26566990-8d6c-40f5-9ece-521c09438f0c", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "a474e421-b17c-42cf-b47e-0024d1e5d1b6", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "9078f63d-412b-42d8-bf82-29fb62467f07", "EffectiveDate": "2025-07-19T01:30:51.7447222-07:00", "WellPurposeType": { "WellPurposeTypeId": "4b280748-0390-4199-ac5e-39ad4da3c72d", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "cca49b39-a3d7-4531-bc6f-2012a8c1f8ba", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "bece48d6-18fd-4280-ab24-ea546d271519", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-07-19T01:30:51.7447222-07:00", "MeasurementValueNeededDate": "2025-07-19T01:30:51.7447222-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7a7c541f-43be-403d-8b13-5f119a08d549", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-19T01:30:51.7447222-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "f549fb92-0cba-4551-bf30-61dc7e1d7927", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-19T01:30:51.7447222-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": "e72d4203-6ef7-47cf-b7dd-ee409008ad9a", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "0c7ccc63-e54f-4ab4-b2fb-9f1c4295dea3", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2a2c7cfd-c4f9-4edb-9e17-c485526dc705", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "711391ca-3e75-4cbb-8619-a0bbe286fba5", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "4bfde3b1-1be8-45de-be77-07ca365fd3b5", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "acc66823-bb8f-4959-8912-5272c627fc06", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "79cee78a-f89b-454a-bc5a-fa183581e13a", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-19T01:30:51.7447222-07:00", "MeasurementValueNeededDate": "2025-07-19T01:30:51.7447222-07:00", "SourceSystemId": "sample string 3", "CompanyId": "7b688fd5-86a1-4484-a936-2ceb9917e9f6", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "da1178fd-c9f1-4f75-ba25-180a8bc00702", "EffectiveDate": "2025-07-19T01:30:51.7447222-07:00", "StateType": { "StateTypeId": "119f0ef0-fd16-4b47-a556-5ae543541a82", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "4bfde3b1-1be8-45de-be77-07ca365fd3b5", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "acc66823-bb8f-4959-8912-5272c627fc06", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "a94f424d-6151-473d-8b9d-ced7832233ae", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "74a567ce-8d24-4e3d-b0a1-ceeccac01304", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "e7e2c6e4-8dfe-40b6-920d-b30bd194edab", "EffectiveDate": "2025-07-19T01:30:51.7447222-07:00", "StatusType": { "StatusTypeId": "8d032df1-4c87-4ec0-98d5-cf52276d1607", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "4bfde3b1-1be8-45de-be77-07ca365fd3b5", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "acc66823-bb8f-4959-8912-5272c627fc06", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "0927719a-be54-4e46-9d81-ec132e39b37d", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "46485819-41d9-4e31-9d8d-ab55dea410b5", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "2183b375-d48f-4036-8797-9ec4f839ab06", "EffectiveDate": "2025-07-19T01:30:51.7447222-07:00", "WellPurposeType": { "WellPurposeTypeId": "1c575e36-d176-4cca-8a8a-93f79c7f8af4", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "754e3278-2fb8-4a04-951a-d003edea3727", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "d57324d0-1282-4fd2-a61d-623a93527c0e", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-07-19T01:30:51.7447222-07:00", "MeasurementValueNeededDate": "2025-07-19T01:30:51.7447222-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "c7498202-0295-4b37-8c8f-28f0bf52f3bd", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-19T01:30:51.7447222-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "cc4d0509-cede-4e1f-b22c-3454e7e92d78", "CreateDate": "2025-07-19T01:30:51.7447222-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-19T01:30:51.7447222-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }