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": "87248214-a47d-41aa-8a91-2585ca8c0cbc", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "30954a15-a681-4aa9-be62-fc5110d3c073", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2a7b4609-b3aa-4da2-9172-fddc7c873698", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "38a04acf-16c4-4b0f-a152-868f2e13c2be", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "8e0288dd-728e-405f-9a1e-f62d7cb38fe4", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0bc571d1-72e0-4617-b8d9-398b45c067d7", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "5247c0c1-dbe0-41ef-b0cf-27c26fc68aab", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T07:04:19.5774999-08:00", "MeasurementValueNeededDate": "2024-12-21T07:04:19.5774999-08:00", "SourceSystemId": "sample string 3", "CompanyId": "024b7d18-fba1-4044-802c-8a5d263a29cf", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "229f671d-d60c-4937-a814-7e76f94eb18f", "EffectiveDate": "2024-12-21T07:04:19.5774999-08:00", "StateType": { "StateTypeId": "ce69aa0b-6944-4f43-b443-f9a16df96fb8", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "8e0288dd-728e-405f-9a1e-f62d7cb38fe4", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0bc571d1-72e0-4617-b8d9-398b45c067d7", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "8441a6d7-508a-4281-90c8-8831d0eb501a", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "0a74c896-f496-4868-a452-c2ac11886bd2", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "6eb30e11-6fc0-4d77-aca9-1797a188484b", "EffectiveDate": "2024-12-21T07:04:19.5774999-08:00", "StatusType": { "StatusTypeId": "62d1b06f-4604-4b0c-9206-546f1599fc6e", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "8e0288dd-728e-405f-9a1e-f62d7cb38fe4", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0bc571d1-72e0-4617-b8d9-398b45c067d7", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "4d64be23-6007-4d46-a8c4-6f1884009ce0", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "1be756f2-58c4-4b29-be9c-50df7c3f8edf", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "147678a9-8e60-4505-b825-0d628f550d9b", "EffectiveDate": "2024-12-21T07:04:19.5774999-08:00", "WellPurposeType": { "WellPurposeTypeId": "df768d75-65b2-4fe8-b3ef-b219fcc9e911", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "9eb948c1-49a3-43f3-a4ff-eb5032811c75", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "e8dea82d-0410-44c9-a4f6-f7a446c13ca1", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2024-12-21T07:04:19.5774999-08:00", "MeasurementValueNeededDate": "2024-12-21T07:04:19.5774999-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "c518a81f-7c93-41da-8010-601053452e7f", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-21T07:04:19.5774999-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "82c33269-6997-4038-9c56-4f8813860fea", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T07:04:19.5774999-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": "9ff7d6c0-65ec-497c-a674-450a0e4c2b20", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "5b1beb5e-77fd-45a2-9a86-399e5b7d061c", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "956df650-9fa6-4f40-989e-196049745738", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "2a7d3424-dce7-467a-b68b-c84c3b915787", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "abd50d22-d2c5-4d1f-91f4-bf4be147d7aa", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "849f958e-042b-48d3-b440-df5cb004afed", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "cf38e081-2a50-4b5d-961c-3aed8b4c0c3b", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T07:04:19.5774999-08:00", "MeasurementValueNeededDate": "2024-12-21T07:04:19.5774999-08:00", "SourceSystemId": "sample string 3", "CompanyId": "08e2678c-92aa-46ca-a733-3f9698ad50c5", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "6e8933dd-fe08-4b16-96a1-036620824ff5", "EffectiveDate": "2024-12-21T07:04:19.5774999-08:00", "StateType": { "StateTypeId": "353d7ebd-9d7e-4d8a-979f-8ebb5f6b412e", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "abd50d22-d2c5-4d1f-91f4-bf4be147d7aa", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "849f958e-042b-48d3-b440-df5cb004afed", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "b7611ad7-97b3-44b7-95a9-c22885fa3d96", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "3f9b27e2-b3fc-4049-a937-30cec0594d2d", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "c13209e7-7b2e-45a4-8656-c55ae8532ef8", "EffectiveDate": "2024-12-21T07:04:19.5774999-08:00", "StatusType": { "StatusTypeId": "6ab676d3-3053-41a8-8fc9-728565dcaf0e", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "abd50d22-d2c5-4d1f-91f4-bf4be147d7aa", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "849f958e-042b-48d3-b440-df5cb004afed", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "8aaf4afe-96a5-47df-9bb7-4a12ce76c1d3", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "4dbd0150-6e37-477a-98d1-7c2b3aa45c4b", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "1f3c083b-6c19-4762-af8e-d0d1e9c82675", "EffectiveDate": "2024-12-21T07:04:19.5774999-08:00", "WellPurposeType": { "WellPurposeTypeId": "b1842e60-5f8a-451e-9d15-3ac0a3f4c954", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e4680dcd-fc11-4a13-b38f-1b9f5130c3da", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "54a634e8-d861-487b-8a7a-b86e7428721d", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2024-12-21T07:04:19.5774999-08:00", "MeasurementValueNeededDate": "2024-12-21T07:04:19.5774999-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "615450de-a257-482b-bc20-6f9fe69d6798", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-21T07:04:19.5774999-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "85ca0c02-3fa8-48d9-b7ff-4660f6ddc7db", "CreateDate": "2024-12-21T07:04:19.5774999-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T07:04:19.5774999-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }