apiClientCreate

Create an OAuth2.0 API application for generating API access tokens. The apiClientCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: security:write

For a complete list of input attributes see the ApiClientAttributes type

mutation apiClientCreate ($attributes: ApiClientAttributes!) {
  apiClientCreate (attributes: $attributes) {
      apiClient {
        accessTokenExpiresIn
        authorizationCodeEnabled
        clientCredentialsEnabled
        clientId
        clientSecret
        entityId
        id
        name
        ownerId
        pkceEnabled
        redirectUri
      }
      errors
  }
}

ArgumentsLink to Arguments section

{
  "attributes": {
    "name": "",
    "entityId": "",
    "redirectUri": "",
    "scopes": [
      ""
    ],
    "clientCredentialsEnabled": true,
    "authorizationCodeEnabled": true,
    "accessTokenExpiresIn": 123,
    "pkceEnabled": true
  }
}
Name Type Description
attributes ApiClientAttributes  

ResponseLink to Response section

Name Type Description
apiClient ApiClient  
errors List (String)