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": "a6009c80-b098-4fd1-85e3-cf2ee95ffb8a", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "fe8604ee-7da7-4470-b7a3-37b1e2d3bbc3", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "0be446e3-1602-4834-99b6-70fc04fb6328", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "ca199731-0213-44d1-ac5b-cfb8a8a96d8b", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "2bb80590-c7e6-4e80-95ce-d7d5a838d73a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "387b1d33-b2ea-4202-b0a2-1d4ec21fc681", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "9ad01fac-ef22-404f-b461-10e67238cbac", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T04:50:34.6598903-08:00", "MeasurementValueNeededDate": "2024-11-21T04:50:34.6598903-08:00", "SourceSystemId": "sample string 3", "CompanyId": "47c77f75-072a-452d-b46d-9e24ab7cc20c", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "4bcacc5b-2394-4353-a570-90866699dc05", "EffectiveDate": "2024-11-21T04:50:34.6598903-08:00", "StateType": { "StateTypeId": "c1405829-e211-4213-8752-d787059a70e4", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "2bb80590-c7e6-4e80-95ce-d7d5a838d73a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "387b1d33-b2ea-4202-b0a2-1d4ec21fc681", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "92471894-b753-4ab4-a12b-13db405d6b5d", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "063c0dce-c11a-4b8f-a778-816f47ec8007", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "8009a3b1-bd1b-4bae-9cd4-841388ee0d46", "EffectiveDate": "2024-11-21T04:50:34.6598903-08:00", "StatusType": { "StatusTypeId": "4ce09264-a9ed-4516-9090-63affe305747", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "2bb80590-c7e6-4e80-95ce-d7d5a838d73a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "387b1d33-b2ea-4202-b0a2-1d4ec21fc681", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "25bbba37-28f6-421d-b209-baa3abfd05da", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "a86f59a4-b2a7-4de4-8527-73bc53ac1525", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "c5319897-2bbb-448e-92b6-053fc3dc3a82", "EffectiveDate": "2024-11-21T04:50:34.6598903-08:00", "WellPurposeType": { "WellPurposeTypeId": "b8419a60-1bce-4368-810e-f3dd5975f9a6", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "54cfc6aa-fe1d-40eb-a592-ccbf75797c24", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "4f4688ca-e4e3-42f6-9fb4-3bb1def51307", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2024-11-21T04:50:34.6598903-08:00", "MeasurementValueNeededDate": "2024-11-21T04:50:34.6598903-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "877aa94e-7822-42e1-8ece-39a3ebbe818a", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-11-21T04:50:34.6598903-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "cb306ff9-5ea8-4b6c-b562-36e3059311b5", "CreateDate": "2024-11-21T04:50:34.6598903-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:50:34.6598903-08: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": "9291c938-8689-4f35-98fa-ee39056d7255", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "da29dd80-c3d1-4070-a6ae-6a7154b374e0", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "e21e5df5-2142-4773-ae86-87f136ce2609", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "e561ac72-efe7-4930-8327-1ad1dad284e7", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f7714ad0-98e6-4318-b106-b94f1aebf777", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ab93bae3-2273-453d-a2c9-db19a0fe4d06", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "e7262cb4-e02a-4be2-a24b-ccc8ee1e9901", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T04:50:34.6755023-08:00", "MeasurementValueNeededDate": "2024-11-21T04:50:34.6755023-08:00", "SourceSystemId": "sample string 3", "CompanyId": "938915c1-1218-4573-9322-e1feb96163e2", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "7f9a36a3-4e80-4a9f-b9c5-d64cd948ef05", "EffectiveDate": "2024-11-21T04:50:34.6755023-08:00", "StateType": { "StateTypeId": "6e20acb1-4627-4e95-9623-f26add117f71", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "f7714ad0-98e6-4318-b106-b94f1aebf777", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ab93bae3-2273-453d-a2c9-db19a0fe4d06", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "7b64933f-75bf-44a0-9c43-0da447ee4e41", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "dc28fb49-a616-408f-a9b3-d58b4a59a1c1", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "7ec064c3-d408-4ddb-8bb9-26f0027b3137", "EffectiveDate": "2024-11-21T04:50:34.6755023-08:00", "StatusType": { "StatusTypeId": "1e25c682-b50e-4264-b3f7-d8edbd62594c", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "f7714ad0-98e6-4318-b106-b94f1aebf777", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ab93bae3-2273-453d-a2c9-db19a0fe4d06", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "8864c772-44f4-4fab-ac86-8166f65aff1d", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "9533f737-0bc1-4ca1-8f94-3f5e8b29493a", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "544c2f23-f1d4-4796-9726-ed98558f8272", "EffectiveDate": "2024-11-21T04:50:34.6755023-08:00", "WellPurposeType": { "WellPurposeTypeId": "b64a6672-697e-4ce5-9809-75bbfb344a6a", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "28208999-f8e6-47cd-8b21-c3bc0b823c5e", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "0f107517-da9a-400a-a0ee-8318bd1365fa", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2024-11-21T04:50:34.6755023-08:00", "MeasurementValueNeededDate": "2024-11-21T04:50:34.6755023-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7b558e0d-ef20-476d-952b-f551c1acad30", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-11-21T04:50:34.6755023-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "88e2f43a-59f1-4c58-bed7-711a73182a33", "CreateDate": "2024-11-21T04:50:34.6755023-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:50:34.6755023-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }