Mutation
mutation CreateDestination($input: CreateDestinationInput!) {
createDestination(input: $input) {
destination {
compatibilityMode
createdAt
createdBy
defaultLanguage
description
displayName
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"description": "string",
"displayName": "string",
"safeName": "string",
"tags": [
"string"
]
}
}Response
{
"data": {
"createDestination": {
"destination": {
"compatibilityMode": "V1",
"createdAt": "value",
"createdBy": "value",
"defaultLanguage": "string",
"description": "string",
"displayName": "string"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
createDestination
Creates a destination with no versions; add the first one with createApiVersion. If an archived destination has the same safeName, it’s restored with these settings instead. Fails with ConflictError when an active destination has that safeName, and with ValidationError on invalid input.
MUTATION
createDestination(input: CreateDestinationInput!): CreateDestinationPayload!Arguments
input
required
Returns
destination
errors
Mutation
mutation CreateDestination($input: CreateDestinationInput!) {
createDestination(input: $input) {
destination {
compatibilityMode
createdAt
createdBy
defaultLanguage
description
displayName
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"description": "string",
"displayName": "string",
"safeName": "string",
"tags": [
"string"
]
}
}Response
{
"data": {
"createDestination": {
"destination": {
"compatibilityMode": "V1",
"createdAt": "value",
"createdBy": "value",
"defaultLanguage": "string",
"description": "string",
"displayName": "string"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?