---
title: "Update flow mappings for a specific consumer"
method: PATCH
path: "/consumers/{consumer_id}/syncs/{syncid}"
tags: ["Syncs"]
---

# Update flow mappings for a specific consumer

`PATCH /consumers/{consumer_id}/syncs/{syncid}`

Route that can be used to update the flow mappings for a specific consumer. It will replace the existing configuration with the provided one.

## Path parameters

- `syncid` string, uuid, required
- `consumer_id` string, uuid, required

## Request body

- ReadSyncMappingItem[]
  - `name` string, required
  - `description` string, nullable
  - `display_order` integer
  - `challenge_question` string, nullable
  - `conditions` object, nullable
  - `values` ReadMappingItem[], required
    - `source_id` string, nullable
    - `target_id` string, nullable
  - `hidden_source_ids` string[], required
  - `sub_mapping_name` string, required
  - `sub_mapping_description` string, nullable

## Response `204`

Successful Response

## Other responses

- `404` — Not Found
- `422` — Unprocessable Entity

---

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