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": "b90daf50-36aa-46ac-8feb-4baca5687a5c", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "4d1e2692-6b50-4ba6-b174-d42c0831c603", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "1c36f337-2b2e-418f-97e1-f6ec81452327", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-10-13T18:10:21.6128833-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "048c50b2-280f-4b13-94f2-0336ad890c57", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "34a2494c-00e4-43ce-9a60-466c708a200b", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "50f6322c-8a65-4eeb-8439-c105ecc287b7", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T18:10:21.6128833-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "5c4fe78a-27d5-40eb-9572-be30d0c10efa", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-13T18:10:21.6128833-07:00", "MeasurementValueNeededDate": "2025-10-13T18:10:21.6128833-07:00", "SourceSystemId": "sample string 3", "CompanyId": "31f8f0b3-43d5-4110-a79b-1b89c7c9e1a8", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T18:10:21.6128833-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-10-13T18:10:21.6128833-07:00", "MeasurementValueNeededDate": "2025-10-13T18:10:21.6128833-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "65a769f5-0743-4f02-ac89-1b17fd51c0ba", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T18:10:21.6128833-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-10-13T18:10:21.6128833-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "ad615638-738b-4724-ac01-e11f8dd14db1", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T18:10:21.6128833-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": "f6baeec7-a253-4c14-8451-4ee24924f036", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "99a794e3-7fe2-4b02-8664-3cb48d2e380a", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "465d9522-2871-4098-884e-9425b7de76c0", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-10-13T18:10:21.6128833-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "cd0e6f3a-a52f-4211-a37b-205a544602d3", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "129cf76f-41af-474c-8ceb-16751225b5a0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "9f6be559-43d2-4819-814a-e8c3a38fbad7", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T18:10:21.6128833-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "7a0d0de0-9c12-4b4d-90a6-12650b8414fb", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-13T18:10:21.6128833-07:00", "MeasurementValueNeededDate": "2025-10-13T18:10:21.6128833-07:00", "SourceSystemId": "sample string 3", "CompanyId": "f327084f-831f-4929-8d3e-831d0e4fd823", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-13T18:10:21.6128833-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-10-13T18:10:21.6128833-07:00", "MeasurementValueNeededDate": "2025-10-13T18:10:21.6128833-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "9a60cb93-57be-4ecf-a80c-0237805b9b21", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-13T18:10:21.6128833-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-10-13T18:10:21.6128833-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "11ac6f74-df27-423c-82fa-0f5b483a358f", "CreateDate": "2025-10-13T18:10:21.6128833-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-13T18:10:21.6128833-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }