Create an org OAuth app
HTTP Request
application/json
//name:
string,//:
[[ ... ],//- stringURL
]
:
[[ ... ],//one of
"device_code"+3▾- //OAuth 2.0 Device Authorization Grant.
"device_code" - //OAuth 2.0 Authorization Code Grant.
"authorization_code" - //OAuth 2.0 Refresh Token Grant.
"refresh_token" - //OAuth 2.0 Client Credentials Grant.
"client_credentials"
//
]
mode:
"development"+1▾- //Development mode permits HTTPS redirect URIs and local HTTP redirect URIs. Only the app owner, or an org admin for organization apps, can authorize development apps.
"development" - //Production mode only permits secure non-local redirect URIs.
"production"
//
}
Response
- 201 Created
- //
client_id:
stringUUID,//created_at:
stringISO-8601,//first_party:
boolean,//is_active:
boolean,//name:
string,//:
[[ ... ],//- stringURL
]
updated_at:
stringISO-8601,//client_type:
,"public"+1▾- //A public client.
"public" - //A confidential client.
"confidential"
//:
[[ ... ],//one of
"device_code"+3▾- //OAuth 2.0 Device Authorization Grant.
"device_code" - //OAuth 2.0 Authorization Code Grant.
"authorization_code" - //OAuth 2.0 Refresh Token Grant.
"refresh_token" - //OAuth 2.0 Client Credentials Grant.
"client_credentials"
//
]
mode:
"development"+1▾- //Development mode permits HTTPS redirect URIs and local HTTP redirect URIs. Only the app owner, or an org admin for organization apps, can authorize development apps.
"development" - //Production mode only permits secure non-local redirect URIs.
"production"
//
}
Examples
post
/org/oauth2/apps201 Created
Response