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": "c07a27b5-0918-42bc-a478-c86d87023b6c", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "82948d4d-84d0-40d8-b790-d737ee159a3b", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "c2181760-dae1-4613-87c6-b7983d335663", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-16T01:41:09.5037759-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "a09cd123-9eb4-452b-9ed4-6eeb2d989344", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "99df513a-a329-4011-87d4-1c276a2dcc2e", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "92ebc0ff-6570-48b0-bb65-29e6fabaff44", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-16T01:41:09.5037759-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "6c363b1d-8491-4aea-adf1-987688ea91f1", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-16T01:41:09.5037759-07:00", "MeasurementValueNeededDate": "2025-09-16T01:41:09.5037759-07:00", "SourceSystemId": "sample string 3", "CompanyId": "2bccc112-e31f-4271-8c28-b19bdd6c99a3", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-16T01:41:09.5037759-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-09-16T01:41:09.5037759-07:00", "MeasurementValueNeededDate": "2025-09-16T01:41:09.5037759-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "b90fcd5d-f849-4e97-8e56-29ab1e67c796", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-16T01:41:09.5037759-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-16T01:41:09.5037759-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "c56bfe19-860f-4d6f-b8e4-0aad1d8d6e78", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-16T01:41:09.5037759-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": "4082f68c-d39f-4854-ab00-f208e2e3d152", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "19173d5e-1e3f-4f1a-9c87-c05648987ff6", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "767164bc-ad9c-4c4c-b478-4e874ba665c3", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-16T01:41:09.5037759-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "cb7996ff-684e-479e-937c-e1b72e0e009f", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "354a9ed3-c8e2-48e8-a948-b076d4a81436", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "05258439-2189-4206-9249-f655f12c03cf", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-16T01:41:09.5037759-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "58c5df18-81a6-4369-8b14-89abbc6c8ae6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-16T01:41:09.5037759-07:00", "MeasurementValueNeededDate": "2025-09-16T01:41:09.5037759-07:00", "SourceSystemId": "sample string 3", "CompanyId": "d2b08ae7-2d3c-4136-8c2d-4bc81ec0710c", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-16T01:41:09.5037759-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-09-16T01:41:09.5037759-07:00", "MeasurementValueNeededDate": "2025-09-16T01:41:09.5037759-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "92d3386b-55da-41bf-929a-10b2d98cb994", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-16T01:41:09.5037759-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-16T01:41:09.5037759-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "926e6637-ed45-4031-84db-a919736646e5", "CreateDate": "2025-09-16T01:41:09.5037759-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-16T01:41:09.5037759-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }