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": "2bfbde91-299e-4778-82de-5a7457b13faf", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "4d62174e-3fc6-493d-b014-c21e9f1ffe67", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "253f1297-bb64-4d0e-9bef-1830a86eacec", "CreateDate": "2024-11-21T04:30:20.4887217-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-11-21T04:30:20.4887217-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "3cae99f8-cb8a-454c-8b7b-f16f4610cec9", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "2a3d8e30-fa4e-4c4a-a328-0be43749eb8c", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "9a0c2694-e5a6-42ad-9a7e-cc1b40de73f3", "CreateDate": "2024-11-21T04:30:20.4887217-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:30:20.4887217-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "1a69c6d0-0622-438e-9a64-c760363d5815", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T04:30:20.4887217-08:00", "MeasurementValueNeededDate": "2024-11-21T04:30:20.4887217-08:00", "SourceSystemId": "sample string 3", "CompanyId": "15f39608-cdf6-419a-8e62-386bf516f4d7", "CreateDate": "2024-11-21T04:30:20.4887217-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:30:20.4887217-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-11-21T04:30:20.4887217-08:00", "MeasurementValueNeededDate": "2024-11-21T04:30:20.4887217-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "fb9a99a1-4a45-48b8-8969-276f27636641", "CreateDate": "2024-11-21T04:30:20.4887217-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:30:20.4887217-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-11-21T04:30:20.4887217-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "d343a9fb-c7b6-450b-94c2-f6ac18e8017b", "CreateDate": "2024-11-21T04:30:20.4887217-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:30:20.4887217-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": "da31ff73-2b12-4b2f-8114-48b3f203a1a2", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "7cb15d79-0eef-4506-9e38-f98133f26332", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "9498cb17-fa3c-4dd6-b8d5-51af30eef280", "CreateDate": "2024-11-21T04:30:20.519976-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-11-21T04:30:20.519976-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "ab1f4e44-cb91-4766-a501-a539f2a2e61f", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f676fe11-db01-4aee-9fd5-ab38d1facc0f", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6145bee3-1cbb-418f-b462-b6a818f4db84", "CreateDate": "2024-11-21T04:30:20.519976-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:30:20.519976-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "1f785261-1d79-42b0-8954-0fa33b50b6b3", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T04:30:20.519976-08:00", "MeasurementValueNeededDate": "2024-11-21T04:30:20.519976-08:00", "SourceSystemId": "sample string 3", "CompanyId": "7dc02f4d-2a01-4972-9331-8b53b88d5f41", "CreateDate": "2024-11-21T04:30:20.519976-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:30:20.519976-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-11-21T04:30:20.519976-08:00", "MeasurementValueNeededDate": "2024-11-21T04:30:20.519976-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "1183afb4-81d9-45c3-a319-86e4e0d72368", "CreateDate": "2024-11-21T04:30:20.519976-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:30:20.519976-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-11-21T04:30:20.519976-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "6cbd2a2e-da1d-4ae5-ba83-2f945b6cf9ee", "CreateDate": "2024-11-21T04:30:20.519976-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:30:20.519976-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }