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": "3cd93c0b-15fb-4d39-a365-68c962d4439a", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "b8b056a6-9a5e-49db-9cb7-1c127e504a00", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "e9c620c7-c954-444f-8a83-39055609cb33", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "1345f602-f084-4655-b6a9-a53450108f37", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "271d5e48-9bc6-44d1-8038-9def8be59c1e", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "55849a20-2cf7-4d28-9564-c5497c3ea180", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "c58d1566-e15a-4a7c-b351-71bc513e515b", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-09T15:51:56.7486419-07:00", "MeasurementValueNeededDate": "2025-05-09T15:51:56.7486419-07:00", "SourceSystemId": "sample string 3", "CompanyId": "7fb69d7f-06e8-4e88-a554-a6c78a437a0e", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "7b68ebb9-b80b-4eaf-8e74-ddc754e31f7a", "EffectiveDate": "2025-05-09T15:51:56.7486419-07:00", "StateType": { "StateTypeId": "41bf3a83-6d05-480d-9a2d-f39ff8dbd209", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "271d5e48-9bc6-44d1-8038-9def8be59c1e", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "55849a20-2cf7-4d28-9564-c5497c3ea180", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "7636c62b-2d4a-435d-bea9-e14dbb76103d", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "f0b2d0f2-ae6e-4921-9619-ec4dea22ca89", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "ed7a4eea-eb35-4f6f-b9ca-f4d6b9cbb2f2", "EffectiveDate": "2025-05-09T15:51:56.7486419-07:00", "StatusType": { "StatusTypeId": "dfe53138-aa7b-4428-ad76-bb6dfe62dbbc", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "271d5e48-9bc6-44d1-8038-9def8be59c1e", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "55849a20-2cf7-4d28-9564-c5497c3ea180", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "d809361a-8218-44fb-8f72-b0da3e378c03", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "c64f8127-b41d-4538-9c27-359635e90610", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "cc41202f-decd-41f1-aff6-cc19d18093e0", "EffectiveDate": "2025-05-09T15:51:56.7486419-07:00", "WellPurposeType": { "WellPurposeTypeId": "79057b60-1b53-4bd9-b11a-c96c506895e5", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6f2902a0-0ce2-4d26-8696-4714bc312045", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "cfa11db3-7df5-49d1-bb49-56828effcf21", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-05-09T15:51:56.7486419-07:00", "MeasurementValueNeededDate": "2025-05-09T15:51:56.7486419-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "2c53f8f0-d1c7-4ddf-a3ef-aa2ce28b56c2", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-09T15:51:56.7486419-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "f11037fd-15e5-49c1-81a6-6e18a01f7c71", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:51:56.7486419-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": "f9bee216-c893-47ea-baf8-559b79a5ce30", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "5e039197-f3fb-4b30-8e14-8ebcb543bfbb", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "9a04ce53-5eac-4437-bb4e-83dbb0cf4efc", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "cd59c8d7-8075-4de7-87bf-5bfd4b6ea73a", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "ea330b73-da25-48b6-b9c2-7f609f9ab9c0", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4f2c8ebb-adcd-4391-ad55-c76a0786ef3e", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "55728875-9832-4207-9bac-ae8ad1528ad7", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-09T15:51:56.7486419-07:00", "MeasurementValueNeededDate": "2025-05-09T15:51:56.7486419-07:00", "SourceSystemId": "sample string 3", "CompanyId": "8caaf98d-252e-45ee-bdfc-7534e285b3c1", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "69ca5fd0-1d08-42e5-a57c-3bbda3d5ffc5", "EffectiveDate": "2025-05-09T15:51:56.7486419-07:00", "StateType": { "StateTypeId": "a4d11805-e06e-405c-a973-fdc1445db5dd", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "ea330b73-da25-48b6-b9c2-7f609f9ab9c0", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4f2c8ebb-adcd-4391-ad55-c76a0786ef3e", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "2625b795-b997-49f6-96dc-68843e5fbf56", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "d92483b1-58a9-4aa9-90f9-d0580470f8ba", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "89548ba5-7e06-46d3-b749-aa30e153990f", "EffectiveDate": "2025-05-09T15:51:56.7486419-07:00", "StatusType": { "StatusTypeId": "2ff7a02e-0a2d-481e-9211-05e3eae63679", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "ea330b73-da25-48b6-b9c2-7f609f9ab9c0", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "4f2c8ebb-adcd-4391-ad55-c76a0786ef3e", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "9452f6ef-7ac8-457a-b5e4-fbddd7f53ea9", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "b0078d25-f3e1-4d33-b62d-853995ee5ed2", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "39836e21-345a-490c-863e-1e2371fa881a", "EffectiveDate": "2025-05-09T15:51:56.7486419-07:00", "WellPurposeType": { "WellPurposeTypeId": "164a4563-8bd7-4360-8248-200c8727f877", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "d8b1deb9-5537-47c2-9f4d-47b3f39837c5", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "fa94d0a4-a937-43c8-b396-8c340a064d51", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-05-09T15:51:56.7486419-07:00", "MeasurementValueNeededDate": "2025-05-09T15:51:56.7486419-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "cf1f9e57-d425-4872-825d-5f3ae161dfdb", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-09T15:51:56.7486419-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "254e2521-f56d-489d-921e-291a9ab7effd", "CreateDate": "2025-05-09T15:51:56.7486419-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T15:51:56.7486419-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }