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": "60a9148e-dfee-48e8-a92f-08a92a884ef5", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "132cd9eb-0ccb-42b0-ad7e-65c49960ef8d", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "d21db8f6-a12c-4f3a-801b-bec395a1e939", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-02T07:29:03.4252703-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "25000bcb-0421-4efc-81db-088754e7c052", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "6ca4d35b-1716-4432-98d0-07314a76a93c", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "82e9b6a5-f4aa-4f0d-a594-d4b78479d137", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T07:29:03.4252703-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "6eaa71d2-4840-4cd0-87a8-70d76d367e6b", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-02T07:29:03.4252703-07:00", "MeasurementValueNeededDate": "2025-06-02T07:29:03.4252703-07:00", "SourceSystemId": "sample string 3", "CompanyId": "42a5fe35-e85b-44bd-8067-8defc2331a77", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T07:29:03.4252703-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-02T07:29:03.4252703-07:00", "MeasurementValueNeededDate": "2025-06-02T07:29:03.4252703-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "82a22f26-b342-4761-a200-447f5cd0d555", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T07:29:03.4252703-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-02T07:29:03.4252703-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "78d8d01a-726d-43b7-957c-75c7d2e3bcd3", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T07:29:03.4252703-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": "894e48a8-2d05-49af-a94a-3814509c32ec", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "d7ade1ec-4382-4cb6-b23e-ef728f26dcea", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "0ea6709f-5fae-4424-b79f-f0f4155f9097", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-02T07:29:03.4252703-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "eb3bfd8a-aa68-46a0-a3af-c0d62ef9238f", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "0846ef15-8d96-4675-81fe-dec19b5796db", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "3492f206-7c72-464d-a9a0-b1328ebcc575", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T07:29:03.4252703-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "3e602cf3-8b58-48e7-bee8-c001f43afe2b", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-02T07:29:03.4252703-07:00", "MeasurementValueNeededDate": "2025-06-02T07:29:03.4252703-07:00", "SourceSystemId": "sample string 3", "CompanyId": "99ea4f70-2461-4f4a-8be6-1c469d17d7c6", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T07:29:03.4252703-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-02T07:29:03.4252703-07:00", "MeasurementValueNeededDate": "2025-06-02T07:29:03.4252703-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "1c180ce4-1324-4166-9b13-0a2ba628c1b9", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T07:29:03.4252703-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-02T07:29:03.4252703-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "93e07b49-7b70-421f-a353-84f8b0772d3f", "CreateDate": "2025-06-02T07:29:03.4252703-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T07:29:03.4252703-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }