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": "249dc75b-9f46-427d-9bc0-73a3b1bacfe2", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "876ad6b5-d7ab-4b0a-a7ce-f5251c370bb6", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "8f28f063-89a6-478a-a40f-befa4a9b97c4", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "4cce2c49-5ed3-40eb-9d3b-651455ef0644", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "35b563ed-df2a-41a2-b81a-d915c36fbd4a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "96083f73-4459-4fe8-bc0a-1293bf1b0fb3", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "dd86aed2-37ac-41d4-9632-698d20cd46c9", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-28T13:13:42.4152947-07:00", "MeasurementValueNeededDate": "2024-04-28T13:13:42.4152947-07:00", "SourceSystemId": "sample string 3", "CompanyId": "9039dbfb-490b-4353-b182-735d0dee59bf", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "c653233d-8253-45b5-8778-d38db3f70838", "EffectiveDate": "2024-04-28T13:13:42.4152947-07:00", "StateType": { "StateTypeId": "6a817e9c-8794-424f-a7f6-beee4db5c58a", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "35b563ed-df2a-41a2-b81a-d915c36fbd4a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "96083f73-4459-4fe8-bc0a-1293bf1b0fb3", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "c66da87b-0c3a-407e-9729-25871e394d0e", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "2cf34f6a-929e-46b3-a1c1-181974a02373", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "bfbb6d64-1e18-49d4-9026-070d69318e76", "EffectiveDate": "2024-04-28T13:13:42.4152947-07:00", "StatusType": { "StatusTypeId": "6a69f2aa-a57b-4e28-8ecd-f89ee3aa708b", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "35b563ed-df2a-41a2-b81a-d915c36fbd4a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "96083f73-4459-4fe8-bc0a-1293bf1b0fb3", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "d8c5db7d-c165-4a65-ace8-d729a365118b", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "8768700b-fb89-4b9f-9ae3-51c819e8293d", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "ee3bbd3b-760f-46a9-ae9a-203803a43c88", "EffectiveDate": "2024-04-28T13:13:42.4152947-07:00", "WellPurposeType": { "WellPurposeTypeId": "21c5cad1-cb85-420e-9247-d281ef1f96a6", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "c246e04d-fe76-4b7f-81cf-f18afc0556a4", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "83df4537-2715-430b-b96b-daeed25ae368", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2024-04-28T13:13:42.4152947-07:00", "MeasurementValueNeededDate": "2024-04-28T13:13:42.4152947-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7baa89a4-0236-429d-b1ef-9074b54b2b7f", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-28T13:13:42.4152947-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "44535ab3-86c3-41d5-98cd-2011ba83cc14", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T13:13:42.4152947-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": "b54b5487-495c-42ff-a9d8-8c4d19e4cb22", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "f8498414-7f4c-409b-b634-582de804b050", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "8a011ebe-a9a3-4f5e-8512-57b2b772ce04", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "206cff3e-d638-4236-bf7f-2af3e96215c5", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "be82c95c-4dc8-4349-bc9f-b31ec40c1602", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "39cdbb04-ed9d-4bfb-874d-d478e57a18c3", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "c436da5c-ee87-4c57-a34d-a4ba35445aa0", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-28T13:13:42.4152947-07:00", "MeasurementValueNeededDate": "2024-04-28T13:13:42.4152947-07:00", "SourceSystemId": "sample string 3", "CompanyId": "1273ed77-31c9-459c-84f3-ac212f554ef9", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "348371b4-f830-4ff2-8f8f-957aa6fdccf4", "EffectiveDate": "2024-04-28T13:13:42.4152947-07:00", "StateType": { "StateTypeId": "82dd536b-9c8c-4d10-b11f-ef84a1259446", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "be82c95c-4dc8-4349-bc9f-b31ec40c1602", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "39cdbb04-ed9d-4bfb-874d-d478e57a18c3", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "9cbf521a-85f2-4a8d-b56b-8be37f95427d", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "68041836-d680-4c9a-aa1a-373ebec4f2e1", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "113e1131-1a75-433f-b7e9-316538fdd099", "EffectiveDate": "2024-04-28T13:13:42.4152947-07:00", "StatusType": { "StatusTypeId": "eb8dccb7-25f7-42c1-a982-00d19467e928", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "be82c95c-4dc8-4349-bc9f-b31ec40c1602", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "39cdbb04-ed9d-4bfb-874d-d478e57a18c3", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "2cada5e5-845d-4810-9f80-3547bf9fee6a", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "4a7de1e2-079f-4b3f-9c7c-48682c06e64b", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "1fc34e96-0793-4118-92ed-60e655024918", "EffectiveDate": "2024-04-28T13:13:42.4152947-07:00", "WellPurposeType": { "WellPurposeTypeId": "d05a6b78-530e-4e02-9217-44aeb8ab4ff8", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "1ab85f01-28e6-49f5-b8d5-bc60e1086217", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "cfc840a7-5d24-4b92-917b-286a5b1b2c3a", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2024-04-28T13:13:42.4152947-07:00", "MeasurementValueNeededDate": "2024-04-28T13:13:42.4152947-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "42fe67bd-b724-45ca-b591-2130f8c5b104", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-28T13:13:42.4152947-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "bb669fb8-2b4f-4168-aa9e-c82ea7b6b646", "CreateDate": "2024-04-28T13:13:42.4152947-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-28T13:13:42.4152947-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }