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": "c5661675-8968-45d7-8bfd-3bcb19a59ef8", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "ae5ed521-eeb3-4294-b979-74fb087ad2e4", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "cf50adff-6f74-4343-8540-82e8e439bf7a", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-13T21:06:12.7499629-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "842f150b-5ce2-4311-b05f-1139c919e566", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "3fd8d734-d785-45a5-9b48-217368c2078e", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e37c50e6-45b1-440f-9541-dc9061229390", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T21:06:12.7499629-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "4d00d8ef-eefb-4ecb-94c3-0d38efe5ff0c", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-13T21:06:12.7499629-07:00", "MeasurementValueNeededDate": "2025-09-13T21:06:12.7499629-07:00", "SourceSystemId": "sample string 3", "CompanyId": "ddb7d8ac-b136-4226-a51e-39c386f670de", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T21:06:12.7499629-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-09-13T21:06:12.7499629-07:00", "MeasurementValueNeededDate": "2025-09-13T21:06:12.7499629-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "195659d0-0fb6-44b5-935f-bb40ca47904a", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T21:06:12.7499629-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-13T21:06:12.7499629-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "d2572b6b-ab10-422a-b34c-cdacf002bff2", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T21:06:12.7499629-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": "4ddcd18a-9482-47df-9816-e86a7afd4692", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "ced8f300-093f-47ca-a433-0a432cac2500", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "78a2d348-3aa7-44bf-b5b4-4d177fb344df", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-13T21:06:12.7499629-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "576bf6b8-16ce-4517-8289-db4ae4b24c92", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "cd6cfc84-5646-4d5a-ba09-d8380eb7db3c", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "645f9942-8061-4336-9b75-789466eb0ce5", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T21:06:12.7499629-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "abe63f82-b562-4e2a-a79a-f046b35b41ed", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-13T21:06:12.7499629-07:00", "MeasurementValueNeededDate": "2025-09-13T21:06:12.7499629-07:00", "SourceSystemId": "sample string 3", "CompanyId": "729cfe5b-5df5-43f3-87e5-02f17c22d919", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T21:06:12.7499629-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-09-13T21:06:12.7499629-07:00", "MeasurementValueNeededDate": "2025-09-13T21:06:12.7499629-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "baf5c4ee-e0a0-4e89-b2f1-b5a9d67a8ec5", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T21:06:12.7499629-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-13T21:06:12.7499629-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "720587c3-82eb-44d6-96a8-053bde772d93", "CreateDate": "2025-09-13T21:06:12.7499629-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T21:06:12.7499629-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }