Mutations
addAssetToItem
Adds an existing file attachment as an asset to an item.
MUTATION
addAssetToItem(input: AssetToItemInput!): AddAssetToItemArguments
input
required
Returns
entity
entityId
Int
fileAttachmentId
Int
Mutation
mutation AddAssetToItem($input: AssetToItemInput!) {
addAssetToItem(input: $input) {
entity {
Updated
assets {
LastSessionId
_AssetEntitiesCount
_FileAttachmentEntitiesCount
_created
_etag
_updated
}
barcodeLabels {
LastSessionId
_BarcodePrintRequestsCount
_LocationCount
_PartInventoryCount
_PartKitCount
_RunCount
}
comments {
LastSessionId
_RepliesCount
_RunCount
_RunStepCount
_created
_etag
}
fileAttachments {
LastSessionId
_AssetEntitiesCount
_FileAttachmentEntitiesCount
_created
_etag
_updated
}
id
}
entityId
fileAttachmentId
}
}Variables
{
"input": {
"entityId": "id",
"fileAttachmentId": "id"
}
}Response
{
"data": {
"addAssetToItem": {
"entity": {
"Updated": "value",
"assets": [
{
"LastSessionId": "string",
"_AssetEntitiesCount": 1,
"_FileAttachmentEntitiesCount": 1,
"_created": "value",
"_etag": "string",
"_updated": "value"
}
],
"barcodeLabels": [
{
"LastSessionId": "string",
"_BarcodePrintRequestsCount": 1,
"_LocationCount": 1,
"_PartInventoryCount": 1,
"_PartKitCount": 1,
"_RunCount": 1
}
],
"comments": [
{
"LastSessionId": "string",
"_RepliesCount": 1,
"_RunCount": 1,
"_RunStepCount": 1,
"_created": "value",
"_etag": "string"
}
],
"fileAttachments": [
{
"LastSessionId": "string",
"_AssetEntitiesCount": 1,
"_FileAttachmentEntitiesCount": 1,
"_created": "value",
"_etag": "string",
"_updated": "value"
}
],
"id": 1.5
},
"entityId": 1,
"fileAttachmentId": 1
}
}
}Was this page helpful?
⌘I
Mutation
mutation AddAssetToItem($input: AssetToItemInput!) {
addAssetToItem(input: $input) {
entity {
Updated
assets {
LastSessionId
_AssetEntitiesCount
_FileAttachmentEntitiesCount
_created
_etag
_updated
}
barcodeLabels {
LastSessionId
_BarcodePrintRequestsCount
_LocationCount
_PartInventoryCount
_PartKitCount
_RunCount
}
comments {
LastSessionId
_RepliesCount
_RunCount
_RunStepCount
_created
_etag
}
fileAttachments {
LastSessionId
_AssetEntitiesCount
_FileAttachmentEntitiesCount
_created
_etag
_updated
}
id
}
entityId
fileAttachmentId
}
}Variables
{
"input": {
"entityId": "id",
"fileAttachmentId": "id"
}
}Response
{
"data": {
"addAssetToItem": {
"entity": {
"Updated": "value",
"assets": [
{
"LastSessionId": "string",
"_AssetEntitiesCount": 1,
"_FileAttachmentEntitiesCount": 1,
"_created": "value",
"_etag": "string",
"_updated": "value"
}
],
"barcodeLabels": [
{
"LastSessionId": "string",
"_BarcodePrintRequestsCount": 1,
"_LocationCount": 1,
"_PartInventoryCount": 1,
"_PartKitCount": 1,
"_RunCount": 1
}
],
"comments": [
{
"LastSessionId": "string",
"_RepliesCount": 1,
"_RunCount": 1,
"_RunStepCount": 1,
"_created": "value",
"_etag": "string"
}
],
"fileAttachments": [
{
"LastSessionId": "string",
"_AssetEntitiesCount": 1,
"_FileAttachmentEntitiesCount": 1,
"_created": "value",
"_etag": "string",
"_updated": "value"
}
],
"id": 1.5
},
"entityId": 1,
"fileAttachmentId": 1
}
}
}