---
title: "Add organization application role"
method: POST
path: "/api/organizations/{id}/applications/{applicationId}/roles"
tags: ["Organizations"]
---

# Add organization application role

`POST /api/organizations/{id}/applications/{applicationId}/roles`

Add a role to the application in the organization.

## Path parameters

- `id` string, required
- `applicationId` string, required

## Request body

- object
  - `organizationRoleIds` string[], required — The role ID to add.

## Response `201`

The role was added successfully.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — The role could not be added. Some of the roles may not exist.

---

[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)
