POST Attachments
Creates a new attachment.
Request Information
URI Parameters
None.
Body Parameters
The attachment to create. AttachmentId should not be filled in.
Attachment| Name | 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": "f42967d9-3969-41ef-a072-6f4365dc7117",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "5afd0c1b-9293-45eb-b572-c6bdbc988ea0",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "fdb1596a-8603-459e-846f-50ac6b021816",
"CreateDate": "2026-08-23T00:23:41.5875336-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-23T00:23:41.5875336-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "fd592673-d125-4559-b3b8-0ef71399d0da",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "5aa2898a-5f31-4983-8a9a-c1f955b154e1",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "2502a323-8c3b-4bcd-830a-ffa5df724d68",
"CreateDate": "2026-08-23T00:23:41.5875336-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-23T00:23:41.5875336-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "100c2485-a07f-4482-b64b-36802570d38c",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-23T00:23:41.5875336-07:00",
"MeasurementValueNeededDate": "2026-08-23T00:23:41.5875336-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "c8dd65c8-6694-4f76-b976-67db95e15634",
"CreateDate": "2026-08-23T00:23:41.5875336-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-23T00:23:41.5875336-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-23T00:23:41.5875336-07:00",
"MeasurementValueNeededDate": "2026-08-23T00:23:41.5875336-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "6892a1cb-7ae6-4511-8806-118143e44932",
"CreateDate": "2026-08-23T00:23:41.5875336-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-23T00:23:41.5875336-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-23T00:23:41.5875336-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "397ba07e-9f24-4979-9c0a-0679551a8d8e",
"CreateDate": "2026-08-23T00:23:41.5875336-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-23T00:23:41.5875336-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": "740f97b1-1db6-4907-89a6-af18287cc57f",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "5d2ba0bc-f922-45c7-8a1d-31082e7eebd6",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "36176f04-1a6f-4111-8528-67d875693fbb",
"CreateDate": "2026-08-23T00:23:41.6031039-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-23T00:23:41.6031039-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "bb0a3afb-bcc9-4bcb-9104-8791e3cdd547",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "3960ee73-4b75-4aec-971c-36c94dbd2304",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "85969fe4-6df3-4eb2-abb5-98951f83da49",
"CreateDate": "2026-08-23T00:23:41.6031039-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-23T00:23:41.6031039-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "0bfc8c66-c523-4357-87a4-34673e4d068c",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-23T00:23:41.6031039-07:00",
"MeasurementValueNeededDate": "2026-08-23T00:23:41.6031039-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "395bab77-6378-4b25-9e40-06f934b69ae8",
"CreateDate": "2026-08-23T00:23:41.6031039-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-23T00:23:41.6031039-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-23T00:23:41.6031039-07:00",
"MeasurementValueNeededDate": "2026-08-23T00:23:41.6031039-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d994283f-6e9d-4cc4-b675-2b2d25e47a71",
"CreateDate": "2026-08-23T00:23:41.6031039-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-23T00:23:41.6031039-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-23T00:23:41.6031039-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "2a73d85a-63b5-43fe-89d9-0f0c532fc4eb",
"CreateDate": "2026-08-23T00:23:41.6031039-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-23T00:23:41.6031039-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}