# Assign role to applications **POST /api/roles/{id}/applications** Assign a role to a list of applications. The role must have the type `Application`. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **id** (string) The unique identifier of the role. ## Body parameters Content-type: application/json - **applicationIds** (array[string]) An array of application IDs to be assigned. ## Responses ### 201: The role was assigned to the applications successfully. ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 404: Not Found ### 422: Unprocessable Content [Powered by Bump.sh](https://bump.sh)