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": "dbdeef3f-f302-41ff-98cc-aed866dfd544", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "c81ec414-ecac-4ed0-a8c0-827cacb5fac2", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "3ae9bbd1-d247-408d-8b02-4612b6784895", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-02T08:33:32.7151517-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "b05fb090-8ac4-4711-a7b2-ba5c2e73c1ff", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "44b31152-cc79-4820-b16f-edd45609880e", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "41024288-a8cb-4f35-bf7f-e9adafd747d0", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T08:33:32.7151517-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "93095cf0-7184-4acf-a76d-a6368f05416a", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-02T08:33:32.7151517-07:00", "MeasurementValueNeededDate": "2025-06-02T08:33:32.7151517-07:00", "SourceSystemId": "sample string 3", "CompanyId": "69d372ac-5977-4e33-b96a-ce7934627132", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T08:33:32.7151517-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-02T08:33:32.7151517-07:00", "MeasurementValueNeededDate": "2025-06-02T08:33:32.7151517-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "5203f299-21c0-4a68-9014-c585a8f5c763", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T08:33:32.7151517-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-02T08:33:32.7151517-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "55e6548f-a0f4-4a1f-9be5-6cf5d1f38878", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T08:33:32.7151517-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": "ef8d6750-d6b5-411a-8eb8-45ff6efbfbc8", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "6c849643-42d4-4247-aa70-c2b664c824a9", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "dad4266c-1fdf-44a6-8575-cdb10b298ac2", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-02T08:33:32.7151517-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "db4bbeb3-d3f1-4fb9-b232-c03f699a67e8", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "15bb15f4-05a7-4a77-a898-2e3c602059b0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "d2391b88-d00f-4b8b-8c75-18dfb69bbc22", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T08:33:32.7151517-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "c303c890-f08a-4c69-9b08-11eedeac8c49", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-02T08:33:32.7151517-07:00", "MeasurementValueNeededDate": "2025-06-02T08:33:32.7151517-07:00", "SourceSystemId": "sample string 3", "CompanyId": "9baeb08c-e000-4aca-8bf3-470f174da0ec", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T08:33:32.7151517-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-02T08:33:32.7151517-07:00", "MeasurementValueNeededDate": "2025-06-02T08:33:32.7151517-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7e643aaa-6bac-4547-866e-69416425d92b", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T08:33:32.7151517-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-02T08:33:32.7151517-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "cc73635e-1434-465b-a911-dcd2af9b136c", "CreateDate": "2025-06-02T08:33:32.7151517-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T08:33:32.7151517-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }