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

KeyDatatypeRequiredDescription
opc-retry-tokenstringA 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-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(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"}