---
title: "Rename / replace locales / reorder screens"
method: PATCH
path: "/api/v1/screenshots/sets/{id}"
tags: ["Write"]
---

# Rename / replace locales / reorder screens

`PATCH /api/v1/screenshots/sets/{id}`

## Request

- Base URL: `https://api.trysonar.app`
- URL: `https://api.trysonar.app/api/v1/screenshots/sets/{id}`
- Auth: HTTP bearer

Rename / replace locales / reorder screens

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `locales` string[]: Replaces the extra-locale list; removed locales lose their translations
  - `screen_order` string[]: Full permutation of the set's screen ids, new order

## Response `200`

The updated set in full

- object
  - `data` object, required: Result payload — full field reference at https://trysonar.app/docs/api

## Other responses

- `400`: Missing or invalid request parameters
- `401`: Missing or invalid API key
- `403`: Plan or scope insufficient (workspace endpoints need the Indie plan; writes also need a write-scope key)
- `404`: Resource not found or not tracked by your organization
- `429`: Rate limited — see `error.reason`: daily_limit (Indie plan: 1,000 requests/day, resets 00:00 UTC; see `reset_at`), anonymous_daily_limit / batch_too_large (keyless free tier), store_rate_limited or concurrency_limit (transient, honor `retry_after_seconds`)
- `500`: Unexpected server error

---

[API](https://skmtc.dev/trysonar/apis/sonar-api.md) · [All operations](https://skmtc.dev/trysonar/apis/sonar-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trysonar/apis/sonar-api/revisions/73fe8bc46522?raw)
