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": "8598dac1-ce3f-4194-a77c-7eab44a2cbf1", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "e3980c18-bff0-4948-815d-352d691c29ed", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "bd9c31b1-eeca-4397-929f-845891f00b07", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-10-16T20:19:26.7805649-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "dfd65f7f-69ca-4f3b-b309-265437691ad3", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "b75bd736-c395-47d2-a397-8b95a119e765", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a28110fb-7d98-4ceb-9a94-0ab95a57db03", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-16T20:19:26.7805649-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "81aceff0-d2e9-49e7-9336-d483beaf957e", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-16T20:19:26.7805649-07:00", "MeasurementValueNeededDate": "2025-10-16T20:19:26.7805649-07:00", "SourceSystemId": "sample string 3", "CompanyId": "2e149743-d6ff-4111-a626-734efccc037c", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-16T20:19:26.7805649-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-10-16T20:19:26.7805649-07:00", "MeasurementValueNeededDate": "2025-10-16T20:19:26.7805649-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "ab738ed5-bafc-44ff-a01f-1c7ae50f743b", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-16T20:19:26.7805649-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-10-16T20:19:26.7805649-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "abdbf19d-12ba-4a00-80e4-83c1a69a8f9a", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-16T20:19:26.7805649-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": "143d3fc7-84e1-40af-8c4e-a1199bd9d30a", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "5831a3be-6bb8-45ca-8e89-423b1353e1e4", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "9d09a7f7-fbce-45cb-a81d-a09c690cb3eb", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-10-16T20:19:26.7805649-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "7a0f0e74-6dc4-41d3-90af-59d52d49c47f", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "70c46a45-eeb9-4142-9b21-91f6b1ca526d", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "c76378bc-5ea9-4419-9f2d-a7900f536e8d", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-16T20:19:26.7805649-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "f7df23d0-cb66-4446-bd48-ebea3843a118", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-16T20:19:26.7805649-07:00", "MeasurementValueNeededDate": "2025-10-16T20:19:26.7805649-07:00", "SourceSystemId": "sample string 3", "CompanyId": "f056bc6f-69ab-460b-a2bc-aeedb25840b4", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-16T20:19:26.7805649-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-10-16T20:19:26.7805649-07:00", "MeasurementValueNeededDate": "2025-10-16T20:19:26.7805649-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "c625d6b7-5125-4898-b32b-5652501debba", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-16T20:19:26.7805649-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-10-16T20:19:26.7805649-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "c75840fd-9340-4b30-b058-ac3bf9abbefe", "CreateDate": "2025-10-16T20:19:26.7805649-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-16T20:19:26.7805649-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }