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": "3dd9ae18-8a95-436b-bc99-16d6ade8db67", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "bea28c46-4258-44f5-8d69-43d67f477c44", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "591bcdc5-315f-4f3b-a7cb-7e12f8b7b983", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2023-12-01T10:00:59.0829067-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "c27c5767-8cdd-4d38-8602-95753f564f2c", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "a7abc522-1724-45bc-897b-065e5e45d3a0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f158635c-5857-422c-8975-66858a59f6b3", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2023-12-01T10:00:59.0829067-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "fd6b848d-af1c-4769-8ac3-3f827acd28fa", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2023-12-01T10:00:59.0829067-08:00", "MeasurementValueNeededDate": "2023-12-01T10:00:59.0829067-08:00", "SourceSystemId": "sample string 3", "CompanyId": "0970a7b8-d0af-47ed-88d1-5abc1d26fb70", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2023-12-01T10:00:59.0829067-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2023-12-01T10:00:59.0829067-08:00", "MeasurementValueNeededDate": "2023-12-01T10:00:59.0829067-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "4975e561-1450-47b6-8dc6-cf0063683cc0", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2023-12-01T10:00:59.0829067-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2023-12-01T10:00:59.0829067-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "ba30a4af-7f42-4b3e-83cf-b51407e1a9b3", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2023-12-01T10:00:59.0829067-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": "9c58d410-d877-4b1a-b6a6-edc7af07f876", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "f60c25ea-dfbb-43cf-9826-a3e737881756", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "3cc814ef-1c03-4963-9fb7-75af2a6ff1b4", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2023-12-01T10:00:59.0829067-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "67df03c2-337f-434f-91c5-a74e783987ea", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "46eb428f-c4d7-4e3e-9a78-d6f940edfee8", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "73e842c7-25bf-4e75-aad9-b195eaa30b90", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2023-12-01T10:00:59.0829067-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "3742b1a3-168a-42fd-b139-8140122c62a2", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2023-12-01T10:00:59.0829067-08:00", "MeasurementValueNeededDate": "2023-12-01T10:00:59.0829067-08:00", "SourceSystemId": "sample string 3", "CompanyId": "715badf7-0de3-4524-96ca-5e0bd26d255b", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2023-12-01T10:00:59.0829067-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2023-12-01T10:00:59.0829067-08:00", "MeasurementValueNeededDate": "2023-12-01T10:00:59.0829067-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "bdc5a49c-c324-48b5-8bcd-af7b7251905c", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2023-12-01T10:00:59.0829067-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2023-12-01T10:00:59.0829067-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "195494b2-5345-4021-bacd-ff1450a535d4", "CreateDate": "2023-12-01T10:00:59.0829067-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2023-12-01T10:00:59.0829067-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }