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": "f514c17f-51c1-4ff4-9fad-b8d33f990546", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "a8a656af-cd9e-47a2-895a-d329ed3b8768", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "afcf8e85-6712-4ed0-9748-f2e9582212ad", "CreateDate": "2025-03-18T16:00:52.3967666-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-03-18T16:00:52.3967666-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "e8a66c6d-d846-4dda-9fb3-fd163377208d", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "bbea953a-61d7-47a5-9e96-e37ac3d29aca", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "8cbcc06d-8bc6-456c-96ab-f1bcadecbc92", "CreateDate": "2025-03-18T16:00:52.3967666-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-18T16:00:52.3967666-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "942d7dbc-1023-4525-a5f0-de10110fe56d", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-03-18T16:00:52.3967666-07:00", "MeasurementValueNeededDate": "2025-03-18T16:00:52.3967666-07:00", "SourceSystemId": "sample string 3", "CompanyId": "15bb04d2-aca5-4c80-af12-bf60bf38bdf9", "CreateDate": "2025-03-18T16:00:52.3967666-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-18T16:00:52.3967666-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-03-18T16:00:52.3967666-07:00", "MeasurementValueNeededDate": "2025-03-18T16:00:52.3967666-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "a87765d5-daa4-4876-9bd7-2f32dc43e747", "CreateDate": "2025-03-18T16:00:52.3967666-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-18T16:00:52.3967666-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-03-18T16:00:52.3967666-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "cbb76a1c-bce6-4af9-9dca-521c8796428d", "CreateDate": "2025-03-18T16:00:52.3967666-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-18T16:00:52.3967666-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": "cbd8c9e7-c118-4dd7-aca2-6781ed3cf02c", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "72cd00d7-20ae-4f2f-b47e-f57d7ea4e083", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "b0543793-8614-4b44-9838-69277ca819d4", "CreateDate": "2025-03-18T16:00:52.4123924-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-03-18T16:00:52.4123924-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "3a7e5bfa-a178-40a4-be1e-ea16cdc5b628", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "1c01f3fd-8861-4864-bdc4-cf8efe03900f", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "9aff74ec-d47c-4ce0-86fe-da75a8c5376f", "CreateDate": "2025-03-18T16:00:52.4123924-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-18T16:00:52.4123924-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "c8c67fad-908f-4203-ba52-2abb9cfaeed4", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-03-18T16:00:52.4123924-07:00", "MeasurementValueNeededDate": "2025-03-18T16:00:52.4123924-07:00", "SourceSystemId": "sample string 3", "CompanyId": "574fccfc-ccb3-402f-bb2b-982e09ae839b", "CreateDate": "2025-03-18T16:00:52.4123924-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-03-18T16:00:52.4123924-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-03-18T16:00:52.4123924-07:00", "MeasurementValueNeededDate": "2025-03-18T16:00:52.4123924-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "38487911-e30c-4b70-935a-9d839c88e0cd", "CreateDate": "2025-03-18T16:00:52.4123924-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-03-18T16:00:52.4123924-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-03-18T16:00:52.4123924-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "e1855764-f5f5-4140-91a4-00beb0b3ead4", "CreateDate": "2025-03-18T16:00:52.4123924-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-03-18T16:00:52.4123924-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }