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": "7ecb3349-9935-4b18-9718-267cdc8fc793", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "9c00c113-4afb-4524-a6c8-01f72ffc126a", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "7889ba30-b0f4-43ac-8410-d1a148057f2c", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "7221456d-8dab-4196-917c-d6e8d54a490d", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "68484cd4-62c9-4b4c-9a3c-6130c76540ca", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "3943ad8e-fb16-4ed4-aed7-2a85ebbffa72", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "8756adfd-9b52-4632-8405-caf400572a9e", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-03-09T08:29:17.9820257-07:00", "MeasurementValueNeededDate": "2025-03-09T08:29:17.9820257-07:00", "SourceSystemId": "sample string 3", "CompanyId": "8ae98acb-60f6-4e23-8530-b0e4cea51231", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "5bd189b4-9197-49c8-be01-3ef39b2d3ad2", "EffectiveDate": "2025-03-09T08:29:17.9820257-07:00", "StateType": { "StateTypeId": "505730e4-888f-4fea-8451-cd6d0a0baf55", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "68484cd4-62c9-4b4c-9a3c-6130c76540ca", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "3943ad8e-fb16-4ed4-aed7-2a85ebbffa72", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "4b9f5ac6-c5c7-42c3-9380-4c38dc95ed74", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "1141ca9b-1188-4115-9448-22724534a61a", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "f1dbf7cd-334d-47d8-b81d-4c78593681d4", "EffectiveDate": "2025-03-09T08:29:17.9820257-07:00", "StatusType": { "StatusTypeId": "f856b387-5dba-4c26-8be3-366deec798be", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "68484cd4-62c9-4b4c-9a3c-6130c76540ca", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "3943ad8e-fb16-4ed4-aed7-2a85ebbffa72", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "4e8b77f6-c800-4144-ae9e-346111ab0823", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "845ed961-f1ac-448c-84a7-666af3fdce00", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "e325ff87-5f97-4270-be35-27a17a572db3", "EffectiveDate": "2025-03-09T08:29:17.9820257-07:00", "WellPurposeType": { "WellPurposeTypeId": "14780f3a-2a38-4811-9304-442f8098b176", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e015efc9-8a99-4915-b050-38d9da7d4809", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "8287b5f4-04f9-471d-9944-edb80ff1c1f0", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-03-09T08:29:17.9820257-07:00", "MeasurementValueNeededDate": "2025-03-09T08:29:17.9820257-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "4dd5c959-b784-477d-adad-a1680816e67f", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-03-09T08:29:17.9820257-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "023ba8df-268f-40d6-a78d-7de875eeac70", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:29:17.9820257-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": "fc3ff4d8-9629-4459-8317-202b76e000a0", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "a87e2d0c-fd6c-47da-925b-8baebb81bf6d", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "4c6850ce-fc97-411b-b9f3-490195a725d9", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "fb23479f-eab8-4ee6-8e0d-2f12d4ba96b8", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "d299c9c3-249b-4120-b701-21302bd574e5", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0275b4da-7323-494b-a05b-b571d48a8b86", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "fccf0844-6d17-4949-89b9-d4c2abb34a98", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-03-09T08:29:17.9820257-07:00", "MeasurementValueNeededDate": "2025-03-09T08:29:17.9820257-07:00", "SourceSystemId": "sample string 3", "CompanyId": "711b4dc2-e4de-4e75-be08-a1a9e405359d", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "99e94372-3834-477f-ae5e-6f666f349536", "EffectiveDate": "2025-03-09T08:29:17.9820257-07:00", "StateType": { "StateTypeId": "e0b53ce8-a6e4-4c38-a5ac-be7ca5d008a9", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "d299c9c3-249b-4120-b701-21302bd574e5", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0275b4da-7323-494b-a05b-b571d48a8b86", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "98c20bfb-efac-4eea-a8fb-bb74ae457529", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "9f299298-d02f-41f5-85ef-67f14e81a078", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "70e847f2-8007-47e6-8e36-9831280d44ad", "EffectiveDate": "2025-03-09T08:29:17.9820257-07:00", "StatusType": { "StatusTypeId": "59a9a500-eebb-47e7-b580-b8a70700db0c", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "d299c9c3-249b-4120-b701-21302bd574e5", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0275b4da-7323-494b-a05b-b571d48a8b86", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "69ee2b2a-5da6-40af-9ba7-fd81aaad48ab", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "10fd91b5-8ad2-46c4-857c-7ab8026937ab", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "399fa9a2-c70d-4042-8911-65dffa8e2b4f", "EffectiveDate": "2025-03-09T08:29:17.9820257-07:00", "WellPurposeType": { "WellPurposeTypeId": "5adeb06e-b664-4aa5-9835-400012f2ef5a", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "acedd8af-e870-4a01-a542-7a71a0efedfd", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "262e3b21-6093-4b2c-9023-4cffb8897e70", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-03-09T08:29:17.9820257-07:00", "MeasurementValueNeededDate": "2025-03-09T08:29:17.9820257-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "3f132969-70b8-445b-a6b3-eae9cd1dd737", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-03-09T08:29:17.9820257-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "ddeb8bdb-07f0-46cc-b711-253bc293de08", "CreateDate": "2025-03-09T08:29:17.9820257-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-09T08:29:17.9820257-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }