---
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.

---

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