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": "644a7f03-9a8c-43fe-ae06-d19224424c01", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "6f39b060-230a-4ca6-8ead-dfec80702c1c", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "635a81d4-7295-4c50-be1f-963839e4ca07", "CreateDate": "2025-07-31T17:58:34.5267964-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-31T17:58:34.5267964-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "5ebdb59d-5259-42fd-8650-ca03e6ac138a", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "1fd83a3a-b64d-429f-b727-cce4d6909cc7", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "3380ec2e-95ae-4543-9f5a-e475268e456b", "CreateDate": "2025-07-31T17:58:34.5267964-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T17:58:34.5267964-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "919db4c2-3717-4bd6-a431-a1f07409d5cb", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-31T17:58:34.5267964-07:00", "MeasurementValueNeededDate": "2025-07-31T17:58:34.5267964-07:00", "SourceSystemId": "sample string 3", "CompanyId": "da2e1b7c-48b2-45e2-a8dc-d242d544f06a", "CreateDate": "2025-07-31T17:58:34.5267964-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-31T17:58:34.5267964-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-07-31T17:58:34.5267964-07:00", "MeasurementValueNeededDate": "2025-07-31T17:58:34.5267964-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7b3d89ee-1f35-4f7e-b217-49f399bc8196", "CreateDate": "2025-07-31T17:58:34.5267964-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-31T17:58:34.5267964-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-31T17:58:34.5267964-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "f5540c38-850b-4fb1-b306-c2bb8bb8d84b", "CreateDate": "2025-07-31T17:58:34.5267964-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T17:58:34.5267964-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": "09c2438b-8c8e-49a4-b635-7bd3b7851eee", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "4775872f-1ac1-4e8e-a57f-e012c3cc67e8", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2239c607-517b-4820-92c1-f08b9f4fad69", "CreateDate": "2025-07-31T17:58:34.5424137-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-31T17:58:34.5424137-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "f43f5309-adde-4a94-893a-7707396c6e7b", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "54269881-b93a-45a3-bfe6-4d538ebed0f0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "30cf8bfa-ab8c-40e5-bac7-72033f1469d5", "CreateDate": "2025-07-31T17:58:34.5424137-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T17:58:34.5424137-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "c43baf74-4331-4f7c-8e8f-cdd2fde9e8b7", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-31T17:58:34.5424137-07:00", "MeasurementValueNeededDate": "2025-07-31T17:58:34.5424137-07:00", "SourceSystemId": "sample string 3", "CompanyId": "48330fa6-dd13-462c-bf4a-b835a97c3169", "CreateDate": "2025-07-31T17:58:34.5424137-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-31T17:58:34.5424137-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-07-31T17:58:34.5424137-07:00", "MeasurementValueNeededDate": "2025-07-31T17:58:34.5424137-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "e138467b-565e-4739-94ce-cfaf4b32b0d4", "CreateDate": "2025-07-31T17:58:34.5424137-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-31T17:58:34.5424137-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-31T17:58:34.5424137-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "cacd7534-d021-474d-b79c-aed52e36e715", "CreateDate": "2025-07-31T17:58:34.5424137-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T17:58:34.5424137-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }