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": "88aac87e-628b-4941-9de1-fc922a79a3ce", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "b6147053-c6c7-4a34-b5a6-943822264b74", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "e22423ce-a07b-4217-932e-a6699d3d7739", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "7e0b3aba-1eda-41f8-8a22-c8da8b7daebc", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "db122967-9d46-47da-bfd5-e6c0fba8b9ab", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "718be10e-2245-443f-968e-170fd0fdddaf", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "30fa4f25-a9b7-4bab-9714-9b77335570be", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-02T15:09:15.0666405-07:00", "MeasurementValueNeededDate": "2025-06-02T15:09:15.0666405-07:00", "SourceSystemId": "sample string 3", "CompanyId": "0f2320b6-4201-481b-9a37-c83b9a477812", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "51988e1a-940c-4d27-91ca-916ac0f05de6", "EffectiveDate": "2025-06-02T15:09:15.0666405-07:00", "StateType": { "StateTypeId": "5417d777-8c66-4b40-b7c8-87e70f5c7bda", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "db122967-9d46-47da-bfd5-e6c0fba8b9ab", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "718be10e-2245-443f-968e-170fd0fdddaf", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "8bfee158-0ef9-44c8-8246-629ac092f1d4", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "5e4448c3-e39a-46cb-8c97-47ee0e42af8a", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "4d70c7f6-ac88-47d6-a065-c7d1feb69d8f", "EffectiveDate": "2025-06-02T15:09:15.0666405-07:00", "StatusType": { "StatusTypeId": "8f1873c2-5ac2-4ee4-a857-bf2b9ed6692c", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "db122967-9d46-47da-bfd5-e6c0fba8b9ab", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "718be10e-2245-443f-968e-170fd0fdddaf", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "19136070-6e61-4af9-b534-9896f687627f", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "41b0bb32-d656-482f-99b9-383eb49149ce", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "6ac8af57-7dc3-45df-82cd-00528237884f", "EffectiveDate": "2025-06-02T15:09:15.0666405-07:00", "WellPurposeType": { "WellPurposeTypeId": "85af6854-97fd-4cec-9ddd-83b1e5d75cbb", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "99460cef-1fbf-4732-8ef3-5bcc08fae9b1", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "91890449-072d-4513-b7a6-bb8c44576306", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-06-02T15:09:15.0666405-07:00", "MeasurementValueNeededDate": "2025-06-02T15:09:15.0666405-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "92353093-7311-434f-a03e-7919ad197915", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-02T15:09:15.0666405-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "86ac853c-82c9-4d6f-8c07-d7b238db6192", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T15:09:15.0666405-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": "dd446dbd-85ef-430c-825b-0222d3ef3975", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "1ad71a1e-2f79-464e-a873-cbbc00f489e4", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "d27c7026-b0ca-4b3d-b736-d5d91b8fb7f4", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "259ece50-4fd5-43c4-a3c2-39be3bd173bd", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "4f4fc44f-c563-4098-a9f8-904c4134eef3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "2e35689c-e370-4a5c-9d96-365f3306ccfb", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "6c5b9a90-ca49-45be-8d16-1b8827cdd4a2", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-02T15:09:15.0666405-07:00", "MeasurementValueNeededDate": "2025-06-02T15:09:15.0666405-07:00", "SourceSystemId": "sample string 3", "CompanyId": "5f3e159e-1006-48ec-bea9-dcfdb737c7b7", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "64c12c75-9480-4421-86c9-73be44995d54", "EffectiveDate": "2025-06-02T15:09:15.0666405-07:00", "StateType": { "StateTypeId": "f3adb992-fdd3-4b07-89fa-ba5857166ead", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "4f4fc44f-c563-4098-a9f8-904c4134eef3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "2e35689c-e370-4a5c-9d96-365f3306ccfb", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "edbe8f1d-5232-4026-a82e-193264295b6c", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "7f6d20bc-1c07-47f5-9164-77d93c3844fe", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "cfb77826-ca9f-40b0-9a55-875a2016aea0", "EffectiveDate": "2025-06-02T15:09:15.0666405-07:00", "StatusType": { "StatusTypeId": "a477a601-fe75-4754-8c8c-79a33ba65fec", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "4f4fc44f-c563-4098-a9f8-904c4134eef3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "2e35689c-e370-4a5c-9d96-365f3306ccfb", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "4a6f424f-3d46-4098-a2af-6424179e744e", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "4122832b-67f3-4d37-b6db-cf098aa71c0a", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "fcca96e2-7bde-4d0a-80f9-fe823cba3c42", "EffectiveDate": "2025-06-02T15:09:15.0666405-07:00", "WellPurposeType": { "WellPurposeTypeId": "cc26fa5e-6883-4ec3-b559-1c27b9d7a67d", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a8627323-03d2-4815-8628-5532b26026b2", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "aa402ee1-fe29-4acc-9dad-bc21f19ed995", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-06-02T15:09:15.0666405-07:00", "MeasurementValueNeededDate": "2025-06-02T15:09:15.0666405-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "007b56f8-dcdc-4932-8bd3-87374fee92d5", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-02T15:09:15.0666405-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "ea4f397d-9b75-43d2-8f2f-4e3c9d702b1c", "CreateDate": "2025-06-02T15:09:15.0666405-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T15:09:15.0666405-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }