---
title: "Update Role Mining Config"
method: POST
path: "/api/v1/role-mining/config"
tags: ["Role Mining"]
---

# Update Role Mining Config

`POST /api/v1/role-mining/config`

Update the role mining configuration, such as cohort hints, max suggestions, and minimum cohort size.

## Request body

- C1ApiRoleMiningManagementV1UpdateRoleMiningConfigRequest — The UpdateRoleMiningConfigRequest message.
  - `cohortHints` C1ApiRoleMiningManagementV1CohortHintInput[], nullable — Hints that guide the analysis to prioritize specific user attributes and values when forming cohorts.
    - `attribute` string — The user attribute name to use for cohort grouping (e.g., "department", "job_title").
    - `priority` integer — Relative priority of this hint. Higher values cause the analysis to weight this attribute more heavily.
    - `values` string[], nullable — Specific attribute values to focus on. If empty, all values for the attribute are considered.
  - `maxSuggestions` integer — Maximum number of suggestions the analysis should produce per run.
  - `minCohortSize` integer — Minimum number of users a cohort must contain to generate a suggestion.

## Response `200`

Successful response

- C1ApiRoleMiningManagementV1UpdateRoleMiningConfigResponse — The UpdateRoleMiningConfigResponse message.
  - `config` C1ApiRoleMiningManagementV1RoleMiningManagementConfig — The RoleMiningManagementConfig message.
    - `cohortHints` C1ApiRoleMiningManagementV1CohortHintView[], nullable — Configured cohort hints that guide which user attributes the analysis prioritizes.
      - `attribute` string — The user attribute name used for cohort grouping.
      - `priority` integer — Relative priority of this hint.
      - `values` string[], nullable — The specific attribute values targeted by this hint.
    - `maxSuggestions` integer — Maximum number of suggestions the analysis will produce per run.
    - `minCohortSize` integer — Minimum number of users a cohort must contain to generate a suggestion.

## Changes

- **2026-08-21** `f2cf3228f366` — 4 breaking, 3 warning
  - the request property `cohortHints` became not nullable
  - the request property `cohortHints/items/values` became not nullable
  - added `#/components/schemas/c1.api.role_mining_management.v1.RoleMiningManagementConfig, subschema #2` to the `config` response property `oneOf` list for the response status `200`
  - the `config` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - …3 more
- **2026-03-18** `8a0bdc21dd5f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/conductorone/apis/c1-api/changes/api/v1/role-mining/config/post.md)

---

[API](https://skmtc.dev/conductorone/apis/c1-api.md) · [All operations](https://skmtc.dev/conductorone/apis/c1-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/conductorone/c1-api/revisions/f2cf3228f366/schema)
