---
title: "Edit Style Guide"
method: PATCH
path: "/style-guides/{styleGuideId}"
tags: ["Style Guides"]
---

# Edit Style Guide

`PATCH /style-guides/{styleGuideId}`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/style-guides/{styleGuideId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-api-v2/docs/style-guides/:styleGuideId/patch.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `style-guide` (Read and Write).

Updates a style guide. A `remove` on `/managerIds/{managerId}` with your own ID, sent as the only operation in the request, stops you managing the style guide instead. If you created the style guide, the account owner becomes its author. To change another manager's access to the style guide, use [Edit Manager](#operation/api.managers.patch).

__Note:__ If you still manage a project that uses the style guide, you can keep reading it there

## Path parameters

- `styleGuideId` integer, required

## Request body

- StyleGuideOperation[]: A JSON Patch document as defined by <a href="https://tools.ietf.org/html/rfc6902#section-3" target="_blank">RFC 6902</a>
  - `op` 'replace' | 'test' | 'remove', required: Patch operation to perform
  - `path` '/name' | '/aiInstructions' | '/languageIds' | '/projectIds' | '/isShared' | '/storageId' | '/managerIds/{managerId}', json-pointer, required: A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>

## Response `200`

Style Guide was successfully updated

- CrowdinStyleGuideResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` StyleGuide, required
    - `id` integer
    - `name` string
    - `aiInstructions` string, nullable
    - `userId` integer
    - `languageIds` string[], nullable
    - `projectIds` integer[], nullable
    - `isShared` boolean: Whether style guide should be shared to all projects within the account
    - `webUrl` string
    - `downloadLink` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `managerIds` integer[]: IDs of managers who can manage this resource. The resource owner sees all managers; a manager sees only their own ID. Other users get an empty list. Pending invitations aren't included. Get via [List Managers](#operation/api.managers.getMany)

## Other responses

- `400`: Invalid Request Body
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Style Guide with specified id was not found
- `405`: Method Not Allowed
- `500`: Internal Server Error

---

[API](https://skmtc.dev/crowdin/apis/crowdin-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-api-v2/revisions/27aae7751699?raw)
