Mutation
mutation DeleteConversionPreset($input: DeleteConversionPresetInput!) {
deleteConversionPreset(input: $input) {
conversionPreset {
createdAt
displayName
id
parameters {
aspectRatio
background
mode
outputFormat
paddingPercent
quality
}
presetId
updatedAt
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"deleteConversionPreset": {
"conversionPreset": {
"createdAt": "value",
"displayName": "string",
"id": "id",
"parameters": {
"aspectRatio": "string",
"background": "string",
"mode": "FIT",
"outputFormat": "JPG",
"paddingPercent": 1,
"quality": 1
},
"presetId": "string",
"updatedAt": "value"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
deleteConversionPreset
Deletes a conversion preset, removes its conversion property from every source, and returns the deleted preset. Expected failures come back in the payload’s errors list, not as top-level GraphQL errors, each with a code naming the failure: ConflictError while a card definition, archived ones included, binds that conversion property on a source, and the preset stays; NotFoundError for an unknown or already deleted preset.
MUTATION
deleteConversionPreset(input: DeleteConversionPresetInput!): DeleteConversionPresetPayload!Arguments
input
required
Returns
conversionPreset
errors
Mutation
mutation DeleteConversionPreset($input: DeleteConversionPresetInput!) {
deleteConversionPreset(input: $input) {
conversionPreset {
createdAt
displayName
id
parameters {
aspectRatio
background
mode
outputFormat
paddingPercent
quality
}
presetId
updatedAt
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"deleteConversionPreset": {
"conversionPreset": {
"createdAt": "value",
"displayName": "string",
"id": "id",
"parameters": {
"aspectRatio": "string",
"background": "string",
"mode": "FIT",
"outputFormat": "JPG",
"paddingPercent": 1,
"quality": 1
},
"presetId": "string",
"updatedAt": "value"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?