---
title: "POST /update-assoc"
method: POST
path: "/update-assoc"
tags: ["v2"]
---

# POST /update-assoc

`POST /update-assoc`

## Request body

- UpdateAssoc — updateAssoc is a command that updates the sub-claims of an association between role and auth method.
  - `assoc-id` string, required — The association id to be updated
  - `case-sensitive` string — Treat sub claims as case-sensitive [true/false]
  - `json` boolean — Set output format to JSON
  - `sub-claims` object — key/val of sub claims, e.g group=admins,developers
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

updateAssocResponse wraps response body.

- UpdateAssocOutput

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
