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": "6713fbf9-ff4c-4097-81ea-5885f2d73a99", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "2245251f-3e3a-46a5-bbf5-7ef44252b48a", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2e6f4ced-c524-494e-af2a-37b6cbccc27c", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "11cc67a3-934e-4b6f-8e31-2d51c22e7f4e", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "3045d9b4-afd6-4c2f-9bbd-11005601ac63", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6f3b69fc-af56-438d-a99a-d300aab39461", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "19da4f05-a6be-4fc7-81e4-f27f5c7c8b29", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:00:00.5694754-08:00", "MeasurementValueNeededDate": "2024-12-21T19:00:00.5694754-08:00", "SourceSystemId": "sample string 3", "CompanyId": "79b5df28-8393-4129-9c85-6f71c8b1e18a", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-21T19:00:00.5694754-08:00", "MeasurementValueNeededDate": "2024-12-21T19:00:00.5694754-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "fb5763a5-614d-4a4a-84b6-4409398015c6", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-21T19:00:00.5694754-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "eae59428-a1c3-4f5f-b8b6-435beb735f90", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08: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": "ec94d3f8-d6c6-465f-bb61-03a6d408f72a", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "935bf1ef-5400-456a-b5eb-2ba666e658f8", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "0710a5be-510a-4268-8407-4642676531d5", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "ab5fdffc-408b-42bf-a00e-f211c518d091", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "b453bcf3-4a9c-4030-b63c-4d4c459ad90b", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f3a1d0f6-3ee1-4d52-82c0-0bb62476b487", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "e7ef8b8f-ea61-4ffa-b103-83907bc44d41", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T19:00:00.5694754-08:00", "MeasurementValueNeededDate": "2024-12-21T19:00:00.5694754-08:00", "SourceSystemId": "sample string 3", "CompanyId": "5c9f5159-ae4d-4b86-ba74-8d739ac111b6", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-21T19:00:00.5694754-08:00", "MeasurementValueNeededDate": "2024-12-21T19:00:00.5694754-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7ca826ef-06d8-4135-bc49-5a4d3bf307e8", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-21T19:00:00.5694754-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "07c82681-747f-4814-8492-09529cacfb89", "CreateDate": "2024-12-21T19:00:00.5694754-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T19:00:00.5694754-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }