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": "692e17ac-a177-402e-87fb-d37c425fea8a", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "f19ab7e2-0d44-4af0-8944-df72f6f53d76", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "c1139252-0d0b-4a8d-b1dc-32e75ec02266", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-16T13:25:01.5403812-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "a2f2a007-7313-42f0-be7d-853a5953bb10", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "7ab51657-621d-494d-9416-d6c70a0f74d4", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "68e23e4a-5e0c-4137-9cfd-e7527750942d", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-16T13:25:01.5403812-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "8bb72569-9929-415f-a5d4-371ba2662ce9", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-16T13:25:01.5403812-07:00", "MeasurementValueNeededDate": "2025-06-16T13:25:01.5403812-07:00", "SourceSystemId": "sample string 3", "CompanyId": "7be4c4d0-4739-4f63-b747-e753b256952f", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-16T13:25:01.5403812-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-16T13:25:01.5403812-07:00", "MeasurementValueNeededDate": "2025-06-16T13:25:01.5403812-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "f7addb37-3a6d-441f-930d-404e58a3d9da", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-16T13:25:01.5403812-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-16T13:25:01.5403812-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "408f1d58-0190-4ff7-9dcd-d8450e96e1cf", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-16T13:25:01.5403812-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": "0a173ff8-539a-4758-9e2b-51a6b74c0e55", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "53d1e844-6697-48eb-bd57-0a4381d6c7fd", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "6571d4d4-df50-4c48-a1cf-1e0f767a09bd", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-16T13:25:01.5403812-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "cbd8c999-fed3-4219-8cc4-d30087e23c67", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "b1974c13-7857-48c4-bae6-f7b8b1aa5df1", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a1c8092a-9fd5-4e08-98d9-4dd43a25903a", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-16T13:25:01.5403812-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "284b0df7-f7bd-4851-8280-965b5e696e0b", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-16T13:25:01.5403812-07:00", "MeasurementValueNeededDate": "2025-06-16T13:25:01.5403812-07:00", "SourceSystemId": "sample string 3", "CompanyId": "3de413dd-7ff4-4a78-a29b-818a2e1e58e1", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-16T13:25:01.5403812-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-16T13:25:01.5403812-07:00", "MeasurementValueNeededDate": "2025-06-16T13:25:01.5403812-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "a24e1255-b04f-4045-a98c-d4ca12856622", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-16T13:25:01.5403812-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-16T13:25:01.5403812-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "952da0c7-1b06-4cd9-8160-12b50c1c2859", "CreateDate": "2025-06-16T13:25:01.5403812-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-16T13:25:01.5403812-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }