---
title: "Create Role Assignments"
method: POST
path: "/role-assignments/"
---

# Create Role Assignments

`POST /role-assignments/`

## Request body

- object
  - `profile_id` string — profile_id of the assignee
  - `role_key` string — role_key of the role to be assigned
  - `resource_kind` string — resource-kind for scope of the assignment
  - `resource_key` string — resource-key for scope of the assignment
  - `profile_custom_id` string — profile_id or profile_custom_id is required.
  - `role_id` string — role_id or role_key is required
  - `scope_id` string, required
  - `resource_id` string — resource_id or resource_kind is required

## Response `201`

201

- object
  - `id` string
  - `url` string
  - `profile` object
    - `id` string
    - `url` string
    - `client_id` string
    - `custom_id` unknown
    - `nickname` string
    - `created_at` string
  - `role` object
    - `id` string
    - `url` string
    - `client_id` string
    - `name` string
    - `description` string
    - `key` string
    - `permissions` object[]
      - `id` string
      - `url` string
      - `name` string
      - `description` string
      - `key` string
      - `created_at` string
    - `created_at` string
    - `is_active` boolean
  - `scope` object
    - `id` string
    - `url` string
    - `client_id` string
    - `resource` object
      - `id` string
      - `url` string
      - `name` string
      - `description` string
      - `kind` string
      - `created_at` string
      - `scopes_url` string
    - `resource_key` string
    - `created_at` string
  - `created_at` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/livelike/apis/engagement-suite.md) · [All operations](https://skmtc.net/livelike/apis/engagement-suite/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/livelike/engagement-suite/revisions/f3171d1c30f7/schema)
