Mutation
mutation ConvertImage($input: ConvertImageInput!) {
convertImage(input: $input) {
conversionJob {
error
id
position
queuedAt
result {
contentType
expiresAt
filename
size
url
}
status
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"conversionId": "value",
"options": {}
}
}Response
{
"data": {
"convertImage": {
"conversionJob": {
"error": "string",
"id": "value",
"position": 1,
"queuedAt": "value",
"result": {
"contentType": "string",
"expiresAt": "value",
"filename": "string",
"size": "value",
"url": "string"
},
"status": "QUEUED"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
convertImage
Queues a new conversion job for the uploaded original, with a preset or with parameters, and returns it. Read the job with imageConversionJob until it’s completed or failed.
MUTATION
convertImage(input: ConvertImageInput!): ConvertImagePayload!Arguments
input
required
Returns
conversionJob
errors
Mutation
mutation ConvertImage($input: ConvertImageInput!) {
convertImage(input: $input) {
conversionJob {
error
id
position
queuedAt
result {
contentType
expiresAt
filename
size
url
}
status
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"conversionId": "value",
"options": {}
}
}Response
{
"data": {
"convertImage": {
"conversionJob": {
"error": "string",
"id": "value",
"position": 1,
"queuedAt": "value",
"result": {
"contentType": "string",
"expiresAt": "value",
"filename": "string",
"size": "value",
"url": "string"
},
"status": "QUEUED"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?