Applications

Assign user consent scopes to application.

Changed on

Assign the user consent scopes to an application by application id

post/api/applications/{applicationId}/user-consent-scopes

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/applications/{applicationId}/user-consent-scopes
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Path parameters

applicationIdstring required

The unique identifier of the application.

Request body

organizationScopesstring[]

A list of organization scope id to assign to the application. Throws error if any given organization scope is not found.

resourceScopesstring[]

A list of resource scope id to assign to the application. Throws error if any given resource scope is not found.

organizationResourceScopesstring[]

A list of organization resource scope id to assign to the application. Throws error if any given resource scope is not found.

userScopesstring[]

A list of user scope enum value to assign to the application.

Response

All the user consent scopes are assigned to the application successfully

Changes

    • info

      added the new urn:logto:scope:personal_access_tokens enum value to the request property /

    • info

      added the new urn:logto:scope:trusted_devices enum value to the request property /