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": "04431dc4-a6f6-42aa-a396-470f07a76f61", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "bafd5678-7c1d-4f93-adac-fe28ebf784b7", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "3e0b0201-3b0e-4f5d-baed-3108c1a5ac99", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "9781bc07-236b-44b3-82e0-6c9708f9d126", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "d4fbb634-0689-4b91-a63b-fa50c3876a35", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "29001bfe-8a4f-4f68-a071-6319a3d61821", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "f56bfd04-ed37-473f-9384-31ab68e590c6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-27T07:20:04.0771545-07:00", "MeasurementValueNeededDate": "2025-06-27T07:20:04.0771545-07:00", "SourceSystemId": "sample string 3", "CompanyId": "e5ec9400-ae6b-4dd3-a358-d387152c46eb", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "fdc5ce76-1e84-47c7-b344-e1a909d48e16", "EffectiveDate": "2025-06-27T07:20:04.0771545-07:00", "StateType": { "StateTypeId": "9d14a243-cfb6-42a4-bb9a-e5dca42ac9a6", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "d4fbb634-0689-4b91-a63b-fa50c3876a35", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "29001bfe-8a4f-4f68-a071-6319a3d61821", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "105209a7-dfeb-46ce-8e0c-30e5753ca79a", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "204b7dae-6bcb-40d4-a64c-62f11f1374b6", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "03f5a0b0-c1e0-491c-963b-c2ba97521cd0", "EffectiveDate": "2025-06-27T07:20:04.0771545-07:00", "StatusType": { "StatusTypeId": "ae77f175-6b36-405c-83dd-8aaef56fd4c7", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "d4fbb634-0689-4b91-a63b-fa50c3876a35", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "29001bfe-8a4f-4f68-a071-6319a3d61821", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "299dcf48-a9c0-4cd9-86f3-74902a95f6dc", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "bc5eccfe-18ea-4abb-b5d9-140cb21b4710", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "c5d1fd24-b145-4eb9-8221-4e6c922501c2", "EffectiveDate": "2025-06-27T07:20:04.0771545-07:00", "WellPurposeType": { "WellPurposeTypeId": "44a6c3ff-ea0b-45c3-ae38-58d8bf28f4b8", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "aac441a4-c406-47eb-8694-8b41cf283201", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "2c1e0216-86c7-4407-985a-66fe3b5aecbf", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-06-27T07:20:04.0771545-07:00", "MeasurementValueNeededDate": "2025-06-27T07:20:04.0771545-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "6d3fa3d8-2ab8-47c8-a883-1fa90a0e7bfd", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-27T07:20:04.0771545-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "a6d2eb93-4068-4dce-b31d-09943d96ae81", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-27T07:20:04.0771545-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": "b2a4c51d-3ef5-4add-92f7-f762ddebf125", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "0d9fc0fa-3336-4178-b0ec-aedf5195f96e", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "fe74f1fb-5f68-4084-9cff-82b6f3690b04", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "70672723-669c-44d7-8268-37522216b4a6", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "6627edfc-cb27-45c4-b19a-23f9a56b81d1", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7645e2d5-6cf6-4f7e-a4d6-07188b18116d", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "c5e455ba-c544-42bd-a046-93ba5c472027", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-27T07:20:04.0771545-07:00", "MeasurementValueNeededDate": "2025-06-27T07:20:04.0771545-07:00", "SourceSystemId": "sample string 3", "CompanyId": "d501673a-61a4-423c-a4dc-36e5686cdb94", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "52345aef-eba7-4131-9bf3-fdc1f8dde661", "EffectiveDate": "2025-06-27T07:20:04.0771545-07:00", "StateType": { "StateTypeId": "8d4c2bcb-4d1e-43cf-8c9d-80acc69a2bcc", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "6627edfc-cb27-45c4-b19a-23f9a56b81d1", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7645e2d5-6cf6-4f7e-a4d6-07188b18116d", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "4db3f145-bd45-4f0b-b9b0-0dbef842008c", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "11ee2de5-8f2e-4fb1-a99d-acaa4b01ac60", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "30ac0cba-4f2e-4983-a284-0ad25c3fe7d1", "EffectiveDate": "2025-06-27T07:20:04.0771545-07:00", "StatusType": { "StatusTypeId": "2fe7c283-786a-4aab-9cd9-dc056443b82c", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "6627edfc-cb27-45c4-b19a-23f9a56b81d1", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "7645e2d5-6cf6-4f7e-a4d6-07188b18116d", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "512380e7-d83c-4a99-8edd-c135e97023e4", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "01e3c908-2b02-413f-bbb7-a50112e83405", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "9727c2f8-0c19-4817-8930-549a9c16d551", "EffectiveDate": "2025-06-27T07:20:04.0771545-07:00", "WellPurposeType": { "WellPurposeTypeId": "c469c9b0-7921-41a7-ad5c-17d969aa1aff", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a81e57ca-f832-4a53-bf8b-40e7c3df4912", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "981fcc4f-fad8-4cfe-b9fb-f2cd778dc85c", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-06-27T07:20:04.0771545-07:00", "MeasurementValueNeededDate": "2025-06-27T07:20:04.0771545-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "60c20e4c-731b-4088-9aaf-b28389fba272", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-27T07:20:04.0771545-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "dac8d90a-fa81-4f9f-8157-5734950e495a", "CreateDate": "2025-06-27T07:20:04.0771545-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-27T07:20:04.0771545-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }