Mutations
createAsset
Creates an asset, which can be a file or other resource.
MUTATION
createAsset(input: CreateFileAttachmentInput!): CreateAssetArguments
input
required
Returns
fileAttachment
uploadUrl
String
Mutation
mutation CreateAsset($input: CreateFileAttachmentInput!) {
createAsset(input: $input) {
fileAttachment {
LastSessionId
_AssetEntitiesCount
_FileAttachmentEntitiesCount
_created
_etag
_updated
}
uploadUrl
}
}Variables
{
"input": {}
}Response
{
"data": {
"createAsset": {
"fileAttachment": {
"LastSessionId": "string",
"_AssetEntitiesCount": 1,
"_FileAttachmentEntitiesCount": 1,
"_created": "value",
"_etag": "string",
"_updated": "value"
},
"uploadUrl": "string"
}
}
}Was this page helpful?
⌘I
Mutation
mutation CreateAsset($input: CreateFileAttachmentInput!) {
createAsset(input: $input) {
fileAttachment {
LastSessionId
_AssetEntitiesCount
_FileAttachmentEntitiesCount
_created
_etag
_updated
}
uploadUrl
}
}Variables
{
"input": {}
}Response
{
"data": {
"createAsset": {
"fileAttachment": {
"LastSessionId": "string",
"_AssetEntitiesCount": 1,
"_FileAttachmentEntitiesCount": 1,
"_created": "value",
"_etag": "string",
"_updated": "value"
},
"uploadUrl": "string"
}
}
}