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": "f01c8a85-bebd-4fe4-ae57-ded24b5e63cc", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "6ac2729c-3fcf-47d0-8b3f-f44d138226e1", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "7623b23c-6d0a-4a10-8ab0-bf9127469286", "CreateDate": "2025-08-23T22:47:04.5697781-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-23T22:47:04.5697781-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "36d3bf74-831b-4dd6-9965-d4fff24aae97", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "776d22a8-3c0e-4581-b818-250f4a2f0e7f", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "c0f23fda-cf44-4de4-9ef7-b4c8e2441876", "CreateDate": "2025-08-23T22:47:04.5697781-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-23T22:47:04.5697781-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "5779e24a-00da-46ab-afb8-2efe7582546f", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-23T22:47:04.5697781-07:00", "MeasurementValueNeededDate": "2025-08-23T22:47:04.5697781-07:00", "SourceSystemId": "sample string 3", "CompanyId": "bc58db42-bcc6-41a1-a6a9-26fd7ab9c2d0", "CreateDate": "2025-08-23T22:47:04.5697781-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-23T22:47:04.5697781-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-08-23T22:47:04.5853988-07:00", "MeasurementValueNeededDate": "2025-08-23T22:47:04.5853988-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "c328281c-8e6a-4ac6-8383-810e389c3c1f", "CreateDate": "2025-08-23T22:47:04.5853988-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-23T22:47:04.5853988-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-23T22:47:04.5853988-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "59bf216a-61d7-43b8-bf6b-f181af7583fc", "CreateDate": "2025-08-23T22:47:04.5853988-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-23T22:47:04.5853988-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": "5055f11b-eedb-4b54-b49f-8db3a450654a", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "e04518f2-d296-40fb-b43b-06d5c5041af5", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "1fa16a7d-bd43-462e-b7c8-678121ea7e8d", "CreateDate": "2025-08-23T22:47:04.5853988-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-23T22:47:04.5853988-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "8860143e-0e55-45c8-9cbc-ffaec65e2f1e", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "c16d32f7-667b-4d6c-98c3-1dd13e6d29ea", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "d7e7ec05-a73f-4cc1-ab26-ab119c673384", "CreateDate": "2025-08-23T22:47:04.5853988-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-23T22:47:04.5853988-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "589ed8e2-07f0-49df-98f6-216d9ae768cc", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-23T22:47:04.5853988-07:00", "MeasurementValueNeededDate": "2025-08-23T22:47:04.5853988-07:00", "SourceSystemId": "sample string 3", "CompanyId": "29b8b5eb-c63c-49d6-96d0-3146a3d04cf8", "CreateDate": "2025-08-23T22:47:04.5853988-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-23T22:47:04.5853988-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-08-23T22:47:04.5853988-07:00", "MeasurementValueNeededDate": "2025-08-23T22:47:04.5853988-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "c9da7af7-2679-4908-a210-b485305137ed", "CreateDate": "2025-08-23T22:47:04.5853988-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-23T22:47:04.5853988-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-23T22:47:04.5853988-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "aeb41ec6-811c-4b68-b63c-d9a4c9de484a", "CreateDate": "2025-08-23T22:47:04.5853988-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-23T22:47:04.5853988-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }