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": "e9118527-782b-404c-904e-318d376c9156", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "c517eee2-2ba2-4ff4-ab0d-909064e4164e", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "a7cf3d94-01a9-46ba-84cf-9ba66b6307ff", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "f6d97497-2994-4be8-8792-d061a24488c4", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "5bf849c1-4dc5-4e68-af8a-7c4bdf495f5c", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "5d0878f7-fbd6-44ae-b007-fc824146db0e", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "3332658b-81cb-4bb1-95d7-d4e914b7992d", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-29T17:22:13.0678251-07:00", "MeasurementValueNeededDate": "2025-08-29T17:22:13.0678251-07:00", "SourceSystemId": "sample string 3", "CompanyId": "3949afd2-8213-4ec9-a94a-95cffb57866a", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "ce9d2630-a061-44d0-8788-782159d2eaba", "EffectiveDate": "2025-08-29T17:22:13.0678251-07:00", "StateType": { "StateTypeId": "242ac4d8-91fc-442d-b0aa-7dd10dfaadd7", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "5bf849c1-4dc5-4e68-af8a-7c4bdf495f5c", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "5d0878f7-fbd6-44ae-b007-fc824146db0e", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "fd3d713e-26f1-482e-8add-cd9efbb2a6c4", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "7803c297-440a-4502-903b-1a90c96c702b", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "9605f967-2379-4396-8107-8c1d32c88a74", "EffectiveDate": "2025-08-29T17:22:13.0678251-07:00", "StatusType": { "StatusTypeId": "41587495-8c49-42ed-9047-ac3a26835b7d", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "5bf849c1-4dc5-4e68-af8a-7c4bdf495f5c", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "5d0878f7-fbd6-44ae-b007-fc824146db0e", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "1b4c227f-366b-411c-9731-3106b3727c58", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "a92822ad-89b0-40fc-943e-6248f44fa572", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "01150a27-9be6-40be-99e9-5d77d04a15e9", "EffectiveDate": "2025-08-29T17:22:13.0678251-07:00", "WellPurposeType": { "WellPurposeTypeId": "ce5a1c52-2e49-4cb4-9414-e0af20e4710e", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "60e327cb-ed30-4a71-a5a7-038a4c572de5", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "3348e0fb-533c-4492-8cde-542e323d68ef", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-08-29T17:22:13.0678251-07:00", "MeasurementValueNeededDate": "2025-08-29T17:22:13.0678251-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "c418e2b7-bca1-430d-8e39-109cc02f027d", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-29T17:22:13.0678251-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "a1d328a0-f069-45ae-a301-b3a58c0690f9", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:13.0678251-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": "980c1861-76f0-42d9-b427-82e7612b0daa", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "6aa8d6e1-bdac-487a-a336-8ca0b67d6814", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "80ea546d-173b-41f7-9c44-a57b8fb056e4", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "2e983aaf-5bf1-45d6-a86a-8bdea96d74df", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "b2eb1549-db9f-4cac-ae1c-c1d794dcf8f3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "d00dc09c-2481-4ca0-bee9-e651c42fccf0", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "7cceeccf-3692-4457-9a3d-3cbcdb1882b8", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-29T17:22:13.0678251-07:00", "MeasurementValueNeededDate": "2025-08-29T17:22:13.0678251-07:00", "SourceSystemId": "sample string 3", "CompanyId": "cf30e8f7-d715-4637-941a-f72c944532c4", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "4b404fb0-455c-4e11-b249-251d9936bc25", "EffectiveDate": "2025-08-29T17:22:13.0678251-07:00", "StateType": { "StateTypeId": "8fba2e84-0f09-4a8f-be65-f006df195b40", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "b2eb1549-db9f-4cac-ae1c-c1d794dcf8f3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "d00dc09c-2481-4ca0-bee9-e651c42fccf0", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "ba7bdfd0-0044-4f04-b857-6cc63ec81997", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "16c4680e-9e90-47ea-89b1-5b3340a3438f", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "b7ca8611-90b9-4edc-9eb8-d2ef4ab3638c", "EffectiveDate": "2025-08-29T17:22:13.0678251-07:00", "StatusType": { "StatusTypeId": "3a3e25b9-5456-414c-8fe0-189f464dac70", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "b2eb1549-db9f-4cac-ae1c-c1d794dcf8f3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "d00dc09c-2481-4ca0-bee9-e651c42fccf0", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "7e39e773-aed4-4cc9-b6bb-2d230dd9e8a6", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "7ae05888-525d-4ae2-a13d-581ea124c96d", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "01189c83-3bfa-4b7d-861c-aea82f80db50", "EffectiveDate": "2025-08-29T17:22:13.0678251-07:00", "WellPurposeType": { "WellPurposeTypeId": "6b95d381-2fde-47fa-9509-e47cdfcc9ce1", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "1b17358b-cb0a-4490-ad54-76cbe828be22", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "f190c68f-eeba-43d2-b461-ad8d39de5159", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-08-29T17:22:13.0678251-07:00", "MeasurementValueNeededDate": "2025-08-29T17:22:13.0678251-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "9c3b7228-4117-4e35-8f3a-f7a53cdd7153", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-29T17:22:13.0678251-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "6934219f-d6ac-4809-987a-bdefe66128a5", "CreateDate": "2025-08-29T17:22:13.0678251-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:13.0678251-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }