Mutation
mutation DeleteDestination($input: DeleteDestinationInput!) {
deleteDestination(input: $input) {
empty {
value
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"hardDelete": true,
"id": "id"
}
}Response
{
"data": {
"deleteDestination": {
"empty": {
"value": 1
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
deleteDestination
Archives a destination, or with hardDelete: true removes it and its versions for good. A hard delete fails with ConflictError until every version is DELETED.
MUTATION
deleteDestination(input: DeleteDestinationInput!): DeleteDestinationPayload!Arguments
input
required
Returns
empty
errors
Mutation
mutation DeleteDestination($input: DeleteDestinationInput!) {
deleteDestination(input: $input) {
empty {
value
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"hardDelete": true,
"id": "id"
}
}Response
{
"data": {
"deleteDestination": {
"empty": {
"value": 1
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?