Mutation
mutation DeleteApiVersion($input: DeleteApiVersionInput!) {
deleteApiVersion(input: $input) {
apiVersionState
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"input": {
"destinationId": "id",
"hardDelete": true,
"id": "id"
}
}
}Response
{
"data": {
"deleteApiVersion": {
"apiVersionState": "NEW",
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
deleteApiVersion
Starts deleting a version and returns DELETE_STARTED at once; the version’s applications are archived. The teardown runs in the background: follow ApiVersion.state until DELETED (after a hard delete the version is gone instead). Fails with ValidationError while a publish is running.
MUTATION
deleteApiVersion(input: DeleteApiVersionInput!): DeleteApiVersionPayload!Arguments
input
required
Returns
apiVersionState
errors
Mutation
mutation DeleteApiVersion($input: DeleteApiVersionInput!) {
deleteApiVersion(input: $input) {
apiVersionState
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"input": {
"destinationId": "id",
"hardDelete": true,
"id": "id"
}
}
}Response
{
"data": {
"deleteApiVersion": {
"apiVersionState": "NEW",
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?