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": "91d91bb5-a10b-4964-b742-94c557511e7f", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "84024404-6def-4a8f-b6bb-9e566eb86088", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "a05049d7-56a1-4054-a7ab-dd4e7678a126", "CreateDate": "2025-06-30T20:38:35.4074169-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-30T20:38:35.4074169-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "8149f30d-545a-4273-8997-5a02de5e02fd", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "8b9e0265-d337-4711-b129-61b35966cff9", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "5ccd1f11-c063-48d4-9e49-1597ec89d9cf", "CreateDate": "2025-06-30T20:38:35.4230183-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-30T20:38:35.4230183-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "8542e766-fd84-4032-b1b6-d6344b27e54e", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-30T20:38:35.4230183-07:00", "MeasurementValueNeededDate": "2025-06-30T20:38:35.4230183-07:00", "SourceSystemId": "sample string 3", "CompanyId": "0552c92d-77d1-476b-97e3-f352f7332461", "CreateDate": "2025-06-30T20:38:35.4230183-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-30T20:38:35.4230183-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-30T20:38:35.4230183-07:00", "MeasurementValueNeededDate": "2025-06-30T20:38:35.4230183-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "0ff49215-6661-4092-a06c-42d49991a1fb", "CreateDate": "2025-06-30T20:38:35.4230183-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-30T20:38:35.4230183-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-30T20:38:35.4230183-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "5758593a-0e12-497a-8bc5-1a883b3aa08f", "CreateDate": "2025-06-30T20:38:35.4230183-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-30T20:38:35.4230183-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": "cdede473-5f79-460d-9054-6104d78d1325", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "16220e79-cc8b-49cd-b357-f8ddaf20b867", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "88a0d2db-0ef6-40d5-a9d2-c7b4685ffb9a", "CreateDate": "2025-06-30T20:38:35.4230183-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-30T20:38:35.4230183-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "f619df4a-3e25-4c1d-b6ca-3bba3c165e9c", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "d683c23e-5372-4742-8817-b970848bea08", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e26b0be0-2786-467f-8ea1-fb9b8143544f", "CreateDate": "2025-06-30T20:38:35.4230183-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-30T20:38:35.4230183-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "7da05ebe-b2ac-4674-84f4-0c1c2661cdc9", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-30T20:38:35.4230183-07:00", "MeasurementValueNeededDate": "2025-06-30T20:38:35.4230183-07:00", "SourceSystemId": "sample string 3", "CompanyId": "f3ad3484-e408-48e9-855d-d29c229b885c", "CreateDate": "2025-06-30T20:38:35.4230183-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-30T20:38:35.4230183-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-30T20:38:35.4230183-07:00", "MeasurementValueNeededDate": "2025-06-30T20:38:35.4230183-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "b7b15ed2-6aeb-4a35-b180-d54c2c3b5587", "CreateDate": "2025-06-30T20:38:35.4230183-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-30T20:38:35.4230183-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-30T20:38:35.4230183-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "2d1e272e-f5b0-4e7e-ac66-83baa2b33564", "CreateDate": "2025-06-30T20:38:35.4230183-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-30T20:38:35.4230183-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }