---
title: "Assign user consent scopes to application."
method: POST
path: "/api/applications/{applicationId}/user-consent-scopes"
tags: ["Applications"]
---

# Assign user consent scopes to application.

`POST /api/applications/{applicationId}/user-consent-scopes`

Assign the user consent scopes to an application by application id

## Path parameters

- `applicationId` string, required

## Request body

- object
  - `organizationScopes` string[] — A list of organization scope id to assign to the application. Throws error if any given organization scope is not found.
  - `resourceScopes` string[] — A list of resource scope id to assign to the application. Throws error if any given resource scope is not found.
  - `organizationResourceScopes` string[] — A list of organization resource scope id to assign to the application. Throws error if any given resource scope is not found.
  - `userScopes` string[] — A list of user scope enum value to assign to the application.

## Response `201`

All the user consent scopes are assigned to the application successfully

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The application is not found
- `422` — Any of the given organization scope, resource scope or user scope is not found

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
