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": "47d5ddb0-08e1-4dc7-bd4b-6e4b0ed3d461", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "4792b616-ddd5-4f3b-a049-dbc6bdfe6233", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "e879d0d8-d82a-4378-94eb-0f2b992a3f36", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "036bf6ad-a058-42fc-a721-77e8511fa5ef", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "37ea09d0-3d6c-4883-a0c9-2fddae30e54a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "f920dfa1-8caf-410f-8861-65c0b96c694a", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "a5514b1b-9a0a-457f-8317-dba6c9476baf", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-13T15:24:03.3978549-07:00", "MeasurementValueNeededDate": "2025-10-13T15:24:03.3978549-07:00", "SourceSystemId": "sample string 3", "CompanyId": "81541035-54be-4a69-ae25-c9f6072fb9c3", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "7c8fdf49-c6fe-43aa-b472-a22866836cae", "EffectiveDate": "2025-10-13T15:24:03.3978549-07:00", "StateType": { "StateTypeId": "e5b324e0-a61d-460b-bd47-188049e62689", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "37ea09d0-3d6c-4883-a0c9-2fddae30e54a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "f920dfa1-8caf-410f-8861-65c0b96c694a", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "7433fcad-bafe-4084-bc7a-c157584808a7", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "ea8d1371-c10c-46a2-82a2-84e4876cb492", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "90e1a651-ccb5-4856-a8ef-f9ac3dd1dfa9", "EffectiveDate": "2025-10-13T15:24:03.3978549-07:00", "StatusType": { "StatusTypeId": "34c502e7-01a1-4517-8ce2-69dd5bbd4dfe", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "37ea09d0-3d6c-4883-a0c9-2fddae30e54a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "f920dfa1-8caf-410f-8861-65c0b96c694a", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "01937b15-549c-4c58-b323-309b7a3c5b64", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "8acb1aaf-c3ef-42a9-b26a-265b3b3424dd", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "a75e6416-f1f2-4911-9fdf-0ac76b17b4f9", "EffectiveDate": "2025-10-13T15:24:03.3978549-07:00", "WellPurposeType": { "WellPurposeTypeId": "bd4e00f2-87c5-4eb8-a008-af2db4124653", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4e8b3a13-7f5e-4504-933d-49bf38384975", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "293bd663-00fc-4e9e-86d3-e1ea461af615", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-10-13T15:24:03.3978549-07:00", "MeasurementValueNeededDate": "2025-10-13T15:24:03.3978549-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "90f9c52a-b17a-46e6-9d2d-6319fe5295d7", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-10-13T15:24:03.3978549-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "b593f4cd-24e4-4349-94f9-a9fc32b2cf0c", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:24:03.3978549-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": "d71e0f3e-553c-48f9-abae-c7971065854e", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "5d2886fd-3d7f-49ea-bae5-f6f4e16c2a5d", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "354d2c0e-db30-439f-b284-06c70f36e0b4", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "dfc7aed0-a348-4a2d-96a9-629bdebbea96", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "cff92b2b-d3f7-4aa2-87ca-c95ee7c13687", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "211e30b5-b137-44ed-b5a9-1d123f351cb1", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "3d7f27ca-842c-4328-a71c-193b2156366d", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-13T15:24:03.3978549-07:00", "MeasurementValueNeededDate": "2025-10-13T15:24:03.3978549-07:00", "SourceSystemId": "sample string 3", "CompanyId": "8a390b0d-d236-4c20-ab13-1d062e84f207", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "b419aebf-eb0b-4f4c-af30-d8e088d94997", "EffectiveDate": "2025-10-13T15:24:03.3978549-07:00", "StateType": { "StateTypeId": "8c32daae-7886-401d-aa33-7c4e2a92bffc", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "cff92b2b-d3f7-4aa2-87ca-c95ee7c13687", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "211e30b5-b137-44ed-b5a9-1d123f351cb1", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "b6e71728-52c9-4d7b-9a1f-f46ef06603bc", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "454837db-0472-4012-9ebd-e46af0bfbe4c", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "666f1290-9436-4fd0-8c4d-bf363f05570f", "EffectiveDate": "2025-10-13T15:24:03.3978549-07:00", "StatusType": { "StatusTypeId": "8456a8fd-2dd5-45b1-8be8-cbd1e51c9691", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "cff92b2b-d3f7-4aa2-87ca-c95ee7c13687", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "211e30b5-b137-44ed-b5a9-1d123f351cb1", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "30d7a019-b71c-445d-a3bd-10982187ae02", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "226c72ea-523b-4c14-ada9-553ce096e8c1", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "54ad7e55-aef4-4a15-89b9-a9ea103012f1", "EffectiveDate": "2025-10-13T15:24:03.3978549-07:00", "WellPurposeType": { "WellPurposeTypeId": "889200d8-9831-44e9-b388-cc529b5df98f", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "38744d60-c8dd-48b1-ba5d-4f3f2ad3643d", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "0b182518-f2b9-4e1b-960d-c0e9526084c3", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-10-13T15:24:03.3978549-07:00", "MeasurementValueNeededDate": "2025-10-13T15:24:03.3978549-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "4609c111-5611-4fe8-9e8e-c6d6db4a79e1", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-10-13T15:24:03.3978549-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "3a7b7913-bfcf-4a42-88d9-d5992f549404", "CreateDate": "2025-10-13T15:24:03.3978549-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T15:24:03.3978549-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }