Mutation
mutation CreateApplication($input: CreateApplicationInput!) {
createApplication(input: $input) {
application {
accessToken {
expiresIn
token
}
apiVersionId
clientId
clientSecret
createdAt
createdBy
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"apiVersionId": "id",
"destinationId": "id",
"displayName": "string",
"tags": [
"string"
]
}
}Response
{
"data": {
"createApplication": {
"application": {
"accessToken": {
"expiresIn": 1,
"token": "string"
},
"apiVersionId": "value",
"clientId": "string",
"clientSecret": "string",
"createdAt": "value",
"createdBy": "value"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
createApplication
Creates an application with its own credentials for one destination version. Read its clientId, clientSecret or accessToken to call the version’s API.
MUTATION
createApplication(input: CreateApplicationInput!): CreateApplicationPayload!Arguments
input
required
Returns
application
errors
Mutation
mutation CreateApplication($input: CreateApplicationInput!) {
createApplication(input: $input) {
application {
accessToken {
expiresIn
token
}
apiVersionId
clientId
clientSecret
createdAt
createdBy
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"apiVersionId": "id",
"destinationId": "id",
"displayName": "string",
"tags": [
"string"
]
}
}Response
{
"data": {
"createApplication": {
"application": {
"accessToken": {
"expiresIn": 1,
"token": "string"
},
"apiVersionId": "value",
"clientId": "string",
"clientSecret": "string",
"createdAt": "value",
"createdBy": "value"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?