create O Auth Scope

POST {{baseUrl}}/api/application/:applicationId/scope

Creates a new custom OAuth scope for an application. You must specify the Id of the application you are creating the scope for. You can optionally specify an Id for the OAuth scope on the URL, if not provided one will be generated.

Request Body

{"scope"=>{"applicationId"=>"<uuid>", "defaultConsentDetail"=>"<string>", "defaultConsentMessage"=>"<string>", "description"=>"<string>", "id"=>"<uuid>", "insertInstant"=>"<long>", "lastUpdateInstant"=>"<long>", "name"=>"<string>", "required"=>"<boolean>"}}

HEADERS

KeyDatatypeRequiredDescription
X-FusionAuth-TenantIdstringThe unique Id of the tenant used to scope this API request. Only required when there is more than one tenant and the API key is not tenant-scoped.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;scope&quot;:{&quot;applicationId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;data&quot;:{&quot;tempor_d_2&quot;:{},&quot;minim__bb&quot;:{},&quot;ut6&quot;:{}},&quot;defaultConsentDetail&quot;:&quot;\u003cstring\u003e&quot;,&quot;defaultConsentMessage&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;insertInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;lastUpdateInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;required&quot;:&quot;\u003cboolean\u003e&quot;}}