Create resource server for a setup
POST/v2/modules/:module/setups/:setupId/resource-servers
Registers a new resource server within the specified setup. The request body must include the resource server's identifier and its list of declared OAuth scopes. On success, returns the newly created resource server's identifier.
Request
Path Parameters
module stringrequired
setupId stringrequired
- application/json
Body
- Array [
- Array [
- ]
- ]
- Array [
- ]
scopes object[]required
metadata object[]
name string
value string
locale string
name string
policy_implicit_flow string
policy_authorization_code_flow string
policy_refresh_token string
policy_force_reauthentication boolean
custom_claims string
metadata object[]
name string
value string
locale string
name string
owner string
comment string
uri uri
valid_from date-time
Responses
- 201
- 400
- 403
- 404
Resource server successfully created
- application/json
- Schema
- Example (from schema)
Schema
resourceServerId string
{
"resourceServerId": "string"
}
The request body contains invalid or missing resource server properties
The caller does not have administrator privileges required to create a resource server
No setup exists with the specified ID
Loading...