Mutation
mutation DeleteEndpoint($input: DeleteEndpointInput!) {
deleteEndpoint(input: $input) {
empty {
value
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"destinationId": "id",
"id": "id",
"versionId": "id"
}
}Response
{
"data": {
"deleteEndpoint": {
"empty": {
"value": 1
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
deleteEndpoint
Deletes an endpoint for good. On a PUBLISHED version it also starts publishing the removal; follow ApiVersion.state. Fails with ConflictError when the version is publishing or live in a state other than PUBLISHED, or when the endpoint is the last one of a PUBLISHED version. Deleting an endpoint that doesn’t exist succeeds.
MUTATION
deleteEndpoint(input: DeleteEndpointInput!): DeleteEndpointPayload!Arguments
input
required
Returns
empty
errors
Mutation
mutation DeleteEndpoint($input: DeleteEndpointInput!) {
deleteEndpoint(input: $input) {
empty {
value
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"destinationId": "id",
"id": "id",
"versionId": "id"
}
}Response
{
"data": {
"deleteEndpoint": {
"empty": {
"value": 1
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?