Create OAuth Client

POST {{baseUrl}}/oauth-clients

This creates an OAuth client.

Request Body

{"name"=>"Demo API Client", "description"=>"An API client used for the authorization_code, refresh_token, and client_credentials flows", "accessTokenValiditySeconds"=>750, "grantTypes"=>["AUTHORIZATION_CODE", "CLIENT_CREDENTIALS", "REFRESH_TOKEN"], "accessType"=>"OFFLINE", "enabled"=>true, "businessName"=>"Acme-Solar", "homepageUrl"=>"http://localhost:12345", "refreshTokenValiditySeconds"=>86400, "redirectUris"=>["http://localhost:12345"], "type"=>"CONFIDENTIAL", "internal"=>false, "strongAuthSupported"=>false, "claimsSupported"=>false, "scope"=>["demo:api-client-scope:first", "demo:api-client-scope:second"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"2c9180835d2e5168015d32f890ca1581","secret":"5c32dd9b21adb51c77794d46e71de117a1d0ddb36a7ff941fa28014ab7de2cf3","businessName":"Acme-Solar","homepageUrl":"http://localhost:12345","name":"Demo API Client","description":"An API client used for the authorization_code, refresh_token, and client_credentials flows","accessTokenValiditySeconds":750,"refreshTokenValiditySeconds":86400,"redirectUris":["http://localhost:12345"],"grantTypes":["AUTHORIZATION_CODE","CLIENT_CREDENTIALS","REFRESH_TOKEN"],"accessType":"OFFLINE","type":"CONFIDENTIAL","internal":false,"enabled":true,"strongAuthSupported":false,"claimsSupported":false,"created":"2017-07-11T18:45:37.098Z","modified":"2018-06-25T20:22:28.104Z","scope":["demo:api-client-scope:first","demo:api-client-scope:second"]}