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": "b122ee23-5376-4a50-ba86-bc6a17d09ae8", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "13d8dce3-e58c-4819-b696-49d763844be2", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "b5a393ae-0fcb-4323-a189-4bc8e64c373c", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-08T21:26:37.9855467-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "b17ac0f6-76a3-4f16-916e-e0c7cb183373", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f55e5708-2219-481c-ba8e-fbbe5f3eccfd", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6adba469-b5cd-46e0-8221-a4177adc93ad", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T21:26:37.9855467-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "d9802d37-bd73-4cad-bddc-97ad0e86a0a9", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-08T21:26:37.9855467-07:00", "MeasurementValueNeededDate": "2025-05-08T21:26:37.9855467-07:00", "SourceSystemId": "sample string 3", "CompanyId": "4579787a-7b99-4929-9e13-1abe7f1576ea", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T21:26:37.9855467-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-05-08T21:26:37.9855467-07:00", "MeasurementValueNeededDate": "2025-05-08T21:26:37.9855467-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "2398c849-c011-447f-9b32-810db3454899", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T21:26:37.9855467-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-08T21:26:37.9855467-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "67107ed1-1f91-4405-9103-1c21d19b11a9", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T21:26:37.9855467-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": "02bf5829-bfcb-4164-93f5-06cd6cc9daf2", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "f650e41a-6626-44de-a843-6cc7269fcca8", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "e2973607-24e9-4d67-81f0-6f3d37e7d4f6", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-08T21:26:37.9855467-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "81ed41e3-ca3e-48aa-85f7-6a8052c4508d", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f6e61aed-6ef0-4b18-bd88-8bab057a2278", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "b43a5a5d-ee1c-4ad1-9ddc-eb4a9b8865d5", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T21:26:37.9855467-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "590a534c-f00c-4eb0-8a6d-18fd3030ddc7", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-08T21:26:37.9855467-07:00", "MeasurementValueNeededDate": "2025-05-08T21:26:37.9855467-07:00", "SourceSystemId": "sample string 3", "CompanyId": "7419c5d1-451d-4944-8568-411ea6253989", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T21:26:37.9855467-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-05-08T21:26:37.9855467-07:00", "MeasurementValueNeededDate": "2025-05-08T21:26:37.9855467-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "837dc35d-f120-46f5-aa13-fcc6bcc888d2", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T21:26:37.9855467-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-08T21:26:37.9855467-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "507212bd-0a4c-477e-b7c8-2a6e6fa8fe85", "CreateDate": "2025-05-08T21:26:37.9855467-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T21:26:37.9855467-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }