Platform & adminMu Mutation

createBotAPIToken

Topics: Admin

Create a new API token on behalf of a bot user. Fails if the target user is not a bot. Requires apitoken:write permission.

Returns

CreateAPITokenPayload!

Arguments

Bot token data, including the target bot user ID

Exact field SDL
"""
Create a new API token on behalf of a bot user. Fails if the target user is not a bot. Requires apitoken:write permission.
"""
createBotAPIToken(
  """Bot token data, including the target bot user ID"""
  input: CreateBotAPITokenInput!
): CreateAPITokenPayload! @topic(names: ["admin"])

Declared on Mutation. Access is checked by the platform for each operation.