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": "c3c5bffd-6a6c-4944-a15d-74241a19d2bc", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "78fd2308-2b8e-42f9-9c6b-6a6d180f8f21", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "192c30a7-9051-4e57-bfb2-d5b4a77baaa3", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-22T03:04:18.9358012-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "7ecc0833-262d-4db8-814f-f204d79c673f", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "dad8cd6c-d6ef-47fe-ae80-716fc5950a4d", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "72ca8b5c-21cc-4fb7-a6e2-cf8e19b403cd", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-22T03:04:18.9358012-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "07c59de5-8f44-4587-a1dc-d1db1da99db0", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-22T03:04:18.9358012-08:00", "MeasurementValueNeededDate": "2024-12-22T03:04:18.9358012-08:00", "SourceSystemId": "sample string 3", "CompanyId": "cf95851a-7759-4a0a-8dd0-84ec843d2513", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-22T03:04:18.9358012-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-22T03:04:18.9358012-08:00", "MeasurementValueNeededDate": "2024-12-22T03:04:18.9358012-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "6ce1a781-7d7b-4e26-98a8-80971ca9a251", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-22T03:04:18.9358012-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-22T03:04:18.9358012-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "2185d727-7477-4ae7-846b-f594990cfb31", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-22T03:04:18.9358012-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": "b10de933-f423-4756-872f-92cecbd972ce", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "2508c5fc-9b9a-4e0f-8ce5-eb36d67269f0", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2a1b6105-b85f-488c-ac5d-b8af90226601", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-22T03:04:18.9358012-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "3460adaa-4194-4caa-bab6-ceabe598d421", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "d16545e7-1c86-46a0-88a3-4bd31c08beca", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "06add600-d2c8-454f-b782-e910590e46b8", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-22T03:04:18.9358012-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "17e662ad-2d3c-42bd-8b8d-86d37d1db740", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-22T03:04:18.9358012-08:00", "MeasurementValueNeededDate": "2024-12-22T03:04:18.9358012-08:00", "SourceSystemId": "sample string 3", "CompanyId": "ebb50bdf-956f-4a62-a60e-ee36571ecc68", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-22T03:04:18.9358012-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-22T03:04:18.9358012-08:00", "MeasurementValueNeededDate": "2024-12-22T03:04:18.9358012-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "dde452ff-cd5a-44e2-8dbe-27d32d316adb", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-22T03:04:18.9358012-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-22T03:04:18.9358012-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "e5c20ead-04af-4a74-8db2-fc7f09b25a38", "CreateDate": "2024-12-22T03:04:18.9358012-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-22T03:04:18.9358012-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }