Creates Oauth token for the user
POST {{baseUrl}}/users/:userId/oauth2ClientCredentials
Creates Oauth token for the user
Request Body
{"name"=>"ad in mollit ex", "description"=>"fugiat est Lorem velit officia", "scopes"=>[{"audience"=>"Excepteur id anim elit", "scope"=>"anim eu magna laboris"}, {"audience"=>"Lorem aute dolor ex incididunt", "scope"=>"elit consectetur amet sunt"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or | |
server error without risk of executing that same action again. Retry tokens expire after 24 | |||
hours, but can be invalidated before then due to conflicting operations (e.g., if a resource | |||
has been deleted and purged from the system, then a retry of the original creation request | |||
may be rejected). | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
{"compartmentId":"nisi fugiat occaecat ut","description":"nulla consequat la","expiresOn":"1946-11-15T20:41:02.082Z","id":"aliquip nostrud labore","lifecycleState":"INACTIVE","name":"incididunt ea enim","password":"ut ut deserunt ullamco quis","scopes":[{"audience":"dolor ipsum","scope":"amet Lorem laborum"},{"audience":"","scope":"minim ullamco nulla commodo"}],"timeCreated":"1968-02-23T15:04:47.451Z","userId":"veniam amet commodo"}