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": "5fcb7ad6-f9e1-4b55-aedd-aeed3b6858d5", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "2fa8ccdf-835d-412d-9511-eb37da15ae81", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "abcd6cae-24f6-4e3c-a1f8-2e2acf97a99f", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-10-10T15:21:31.9239377-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "0f5076fd-ddef-431a-856a-90d54c735b7d", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "7c93713f-3da8-42d1-930d-1a36c55eeb57", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "330b34df-9a7e-4f8b-9695-8308b53dc04a", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:21:31.9239377-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "cec2e2be-d611-4390-b833-ca3b1b3934f2", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-10-10T15:21:31.9239377-07:00", "MeasurementValueNeededDate": "2024-10-10T15:21:31.9239377-07:00", "SourceSystemId": "sample string 3", "CompanyId": "ae59d80c-9937-423c-a98b-8d26729550d4", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:21:31.9239377-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-10-10T15:21:31.9239377-07:00", "MeasurementValueNeededDate": "2024-10-10T15:21:31.9239377-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "a9acf19b-4918-4753-9c53-c4f0f9af8980", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T15:21:31.9239377-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-10-10T15:21:31.9239377-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "e942b6cd-2e66-4f1d-b2be-ffb86a245d68", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:21:31.9239377-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": "9b3e8ded-771e-439f-92b2-b815aa0cdafa", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "132245c8-64e3-4492-8737-3d97098d717f", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "cd4a676d-a6e5-4cf7-90b4-9c1631d3381e", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-10-10T15:21:31.9239377-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "bfb8c3ab-45d9-446b-99d6-c8ff3efed9c0", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "53fe2771-48b6-4c9b-9b20-b1464bb6ad3a", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e4fdbc7d-65ca-4aea-a932-a9a01c09c2ba", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:21:31.9239377-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "802d3290-6759-4caf-923d-9aabd3553365", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-10-10T15:21:31.9239377-07:00", "MeasurementValueNeededDate": "2024-10-10T15:21:31.9239377-07:00", "SourceSystemId": "sample string 3", "CompanyId": "b52f119a-87e2-4d2b-88ad-0f39a385466a", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:21:31.9239377-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-10-10T15:21:31.9239377-07:00", "MeasurementValueNeededDate": "2024-10-10T15:21:31.9239377-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "0afee16b-14dd-4865-b4f2-d33922bfa095", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T15:21:31.9239377-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-10-10T15:21:31.9239377-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "8dc1130b-a35e-4f2b-a509-6fd36f06a349", "CreateDate": "2024-10-10T15:21:31.9239377-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:21:31.9239377-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }