---
title: "Assign Role"
method: POST
path: "/v3/portals/{portalId}/teams/{teamId}/assigned-roles"
tags: ["Portal Team Roles"]
---

# Assign Role

`POST /v3/portals/{portalId}/teams/{teamId}/assigned-roles`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/portals/{portalId}/teams/{teamId}/assigned-roles`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Assign a role to a developer team. This associates the set of permissions in a role with the team, so that they will be applied to any developer who is a member of the team.

## Path parameters

- `portalId` string, uuid, required
- `teamId` string, uuid, required

## Query parameters

- `page[size]` integer
- `page[number]` integer

## Request body

- PortalAssignRoleRequest: An assigned role associates a service and an action to a team.
  - `role_name` string, required
  - `entity_id` string, uuid, required
  - `entity_type_name` string, required
  - `entity_region` 'us' | 'eu' | 'au' | 'me' | 'in' | 'sg' | '*', required: Region of the entity.

## Response `201`

Details about the role assignment.

- PortalAssignedRoleResponse: An assigned role associates a service and an action to a team.
  - `id` string, uuid, required
  - `role_name` string, required
  - `entity_id` string, uuid, required
  - `entity_type_name` string, required
  - `entity_region` 'us' | 'eu' | 'au' | 'me' | 'in' | 'sg' | '*', required: Region of the entity.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict

## Changes

- **2026-08-18** `658ffb748f95`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-beta/changes/v3/portals/:portalId/teams/:teamId/assigned-roles/post.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-beta.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/cef0f947e9c9?raw)
