Mutation
mutation CreateTenantApplication($input: CreateTenantApplicationInput!) {
createTenantApplication(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
tenantApplicationCredentials {
application {
accessToken {
__typename
}
apiSelectors
audiences
clientId
createdAt
createdBy
}
clientSecret
}
}
}Variables
{
"input": {
"apiSelectors": [
"string"
],
"name": "string",
"resourceSelectors": [
"string"
],
"scopeKeys": [
"string"
],
"tags": [
"string"
]
}
}Response
{
"data": {
"createTenantApplication": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"tenantApplicationCredentials": {
"application": {
"accessToken": {
"__typename": "AccessToken"
},
"apiSelectors": [
"string"
],
"audiences": [
"string"
],
"clientId": "string",
"createdAt": "value",
"createdBy": "value"
},
"clientSecret": "string"
}
}
}
}Mutations
createTenantApplication
Creates a tenant-level OAuth machine application and returns its client secret. The secret is shown only in this response and must be stored securely by the caller.
MUTATION
createTenantApplication(input: CreateTenantApplicationInput!): CreateTenantApplicationPayload!Arguments
input
required
Application name, tags, and access-catalog selections.
Returns
errors
tenantApplicationCredentials
Mutation
mutation CreateTenantApplication($input: CreateTenantApplicationInput!) {
createTenantApplication(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
tenantApplicationCredentials {
application {
accessToken {
__typename
}
apiSelectors
audiences
clientId
createdAt
createdBy
}
clientSecret
}
}
}Variables
{
"input": {
"apiSelectors": [
"string"
],
"name": "string",
"resourceSelectors": [
"string"
],
"scopeKeys": [
"string"
],
"tags": [
"string"
]
}
}Response
{
"data": {
"createTenantApplication": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"tenantApplicationCredentials": {
"application": {
"accessToken": {
"__typename": "AccessToken"
},
"apiSelectors": [
"string"
],
"audiences": [
"string"
],
"clientId": "string",
"createdAt": "value",
"createdBy": "value"
},
"clientSecret": "string"
}
}
}
}Was this page helpful?