Create Organization OAuth Application By Organization ID
DescriptionCreates a new OAuth App, owned by the specified organization. If Client ID and Client Secret are not provided, they will be generated automatically.
Request
URLURL
Path Parameters
Path Parameters
Unique identifier (GUID) of the organization.
Query Parameters
Query Parameters
context can be OPERATOR, PROVIDER or TENANT
Request Body
The request body to create organization OAuth Application.
{
"accessTokenTTL": 0,
"allowedScopes": {
"generalScopes": [
"string"
],
"organizationScopes": {
"roles": [
{
"name": "string"
}
]
},
"servicesScopes": [
{
"allRoles": false,
"roles": [
{
"name": "string"
}
],
"serviceDefinitionId": "string"
}
]
},
"description": "string",
"displayName": "string",
"id": "string",
"ownerOnlySecretRotation": false,
"secret": "string",
"secretRotationExpirationInSeconds": 0
}
The organization OAuth Application access token time to live in seconds.
The allowed general, organization and service scopes of access.
The description of the organization OAuth Application.
The organization OAuth Application display name.
The unique identifier of the OAuth Application.
When set to ’true’, the client is not allowed to rotate its own secret.
The organization OAuth Application secret
The secret rotation expiration in seconds. The old OAuth Application secret will expire after it.
Authentication
Response
Response BodyResponse Body
200 OK
{
"clientId": "...",
"clientSecret": "..."
}
The unique identifier of the client.
The value of the client secret.
Errors
Bad Request - The request is either incomplete or incorrect
Unauthorized - The user is not authorized to use the API
Forbidden - User does not have permission for this operation