Mutation
mutation CreateApiVersion($input: CreateApiVersionInput!) {
createApiVersion(input: $input) {
apiVersion {
allowedOrigins
applications {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
authentication
cardDefinitions {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
clusters {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
createdAt
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"clusters": [
"string"
],
"defaultClusterId": "id",
"defaultLanguage": "string",
"destinationId": "id",
"languages": [
{
"key": "string"
}
]
}
}Response
{
"data": {
"createApiVersion": {
"apiVersion": {
"allowedOrigins": [
"value"
],
"applications": {
"edges": [
{
"__typename": "ApplicationsEdge"
}
],
"nodes": [
{
"__typename": "Application"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"authentication": "PROTECTED",
"cardDefinitions": {
"edges": [
{
"__typename": "CardDefinitionsEdge"
}
],
"nodes": [
{
"__typename": "CardDefinition"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"clusters": {
"edges": [
{
"__typename": "ClustersEdge"
}
],
"nodes": [
{
"__typename": "Cluster"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"createdAt": "value"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
createApiVersion
Creates a version of a destination, in state NEW. The first version takes the settings you pass; when the destination already has a version, the new one copies the latest (settings and endpoints, next version number) and the input settings are ignored. Fails with ConflictError when the destination is archived or a cluster doesn’t exist.
MUTATION
createApiVersion(input: CreateApiVersionInput!): CreateApiVersionPayload!Arguments
input
required
Returns
apiVersion
errors
Mutation
mutation CreateApiVersion($input: CreateApiVersionInput!) {
createApiVersion(input: $input) {
apiVersion {
allowedOrigins
applications {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
authentication
cardDefinitions {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
clusters {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
createdAt
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"clusters": [
"string"
],
"defaultClusterId": "id",
"defaultLanguage": "string",
"destinationId": "id",
"languages": [
{
"key": "string"
}
]
}
}Response
{
"data": {
"createApiVersion": {
"apiVersion": {
"allowedOrigins": [
"value"
],
"applications": {
"edges": [
{
"__typename": "ApplicationsEdge"
}
],
"nodes": [
{
"__typename": "Application"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"authentication": "PROTECTED",
"cardDefinitions": {
"edges": [
{
"__typename": "CardDefinitionsEdge"
}
],
"nodes": [
{
"__typename": "CardDefinition"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"clusters": {
"edges": [
{
"__typename": "ClustersEdge"
}
],
"nodes": [
{
"__typename": "Cluster"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"createdAt": "value"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?