# Assign roles to applications in an organization **POST /api/organizations/{id}/applications/roles** Assign roles to applications in the specified organization. ## 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 organization. ## Body parameters Content-type: application/json - **applicationIds** (array[string]) An array of application IDs to assign roles to. - **organizationRoleIds** (array[string]) An array of organization role IDs to assign to the applications. ## Responses ### 201: Roles were assigned to the applications successfully. ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 422: At least one of the IDs provided is not valid. For example, the organization ID, application ID, or organization role ID does not exist; the application is not a member of the organization; or the role type is not assignable to the application. [Powered by Bump.sh](https://bump.sh)