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": "0017af5f-00d4-4069-809c-840efe667c42", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "c983b47d-4459-466a-bcb9-1cd0d726965e", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "d89354ef-321b-4c55-bf5e-5867ba5a9fa6", "CreateDate": "2024-04-25T11:16:35.652739-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-25T11:16:35.652739-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "792ac042-13fe-4c37-bd09-4e5d6abcc1de", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "dc407beb-49b2-4b0b-a979-b5d5a462c291", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a56c51ac-dcdf-43b9-82cf-70ebcebe684a", "CreateDate": "2024-04-25T11:16:35.652739-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-25T11:16:35.652739-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "b36d7ee9-9c27-4ac3-a035-163d8f5facc6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-25T11:16:35.652739-07:00", "MeasurementValueNeededDate": "2024-04-25T11:16:35.652739-07:00", "SourceSystemId": "sample string 3", "CompanyId": "786c3790-2a5d-41b9-943a-b86ac463d961", "CreateDate": "2024-04-25T11:16:35.652739-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-25T11:16:35.652739-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-04-25T11:16:35.652739-07:00", "MeasurementValueNeededDate": "2024-04-25T11:16:35.652739-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "8ccce9c8-c942-4bf9-a695-e2a0d624e3e5", "CreateDate": "2024-04-25T11:16:35.652739-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-25T11:16:35.652739-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-25T11:16:35.652739-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "df0dea56-74ca-4abe-a3a1-fa477fe03462", "CreateDate": "2024-04-25T11:16:35.652739-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-25T11:16:35.652739-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": "273a8058-a514-4bb9-b158-d3d3967b711e", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "be7b2c5e-034a-401a-899c-0994eefd14fb", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "a59e9ac5-a111-41f3-9f25-aa05b07b4973", "CreateDate": "2024-04-25T11:16:35.6684288-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-25T11:16:35.6684288-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "e5d31b13-da21-4dc7-ad67-84561cf53820", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "8674cc34-614e-47de-bfc9-954924770b70", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "c2b0167d-b540-4179-a4cf-dc8bfafe8960", "CreateDate": "2024-04-25T11:16:35.6684288-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-25T11:16:35.6684288-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "ed9c8aac-2ae4-4b9e-a0f1-955ce573bd39", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-25T11:16:35.6684288-07:00", "MeasurementValueNeededDate": "2024-04-25T11:16:35.6684288-07:00", "SourceSystemId": "sample string 3", "CompanyId": "c6dd7f3d-33d4-4d05-b62f-16fbdb18afa8", "CreateDate": "2024-04-25T11:16:35.6684288-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-25T11:16:35.6684288-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-04-25T11:16:35.6684288-07:00", "MeasurementValueNeededDate": "2024-04-25T11:16:35.6684288-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "56f1e29c-2db6-4733-b410-ba48d9ded4ae", "CreateDate": "2024-04-25T11:16:35.6684288-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-25T11:16:35.6684288-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-25T11:16:35.6684288-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "290d96b9-7204-4929-8ec3-52bedbd30851", "CreateDate": "2024-04-25T11:16:35.6684288-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-25T11:16:35.6684288-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }