---
title: "Update Team Directory Sync Role Mappings"
method: POST
path: "/v1/teams/{teamId}/dsync-roles"
tags: ["teams"]
---

# Update Team Directory Sync Role Mappings

`POST /v1/teams/{teamId}/dsync-roles`

Update the Directory Sync role mappings for a Team. This endpoint allows updating the mapping between directory groups and team roles or access groups.

## Path parameters

- `teamId` string, required

## Query parameters

- `slug` string

## Request body

- object
  - `roles` object, required — Directory groups to role or access group mappings.

## Response `200`

- object
  - `ok` false | true, required

## Other responses

- `400` — One of the provided values in the request body is invalid.
- `401` — The request is not authorized.
- `403` — You do not have permission to access this resource.
- `410`

---

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