---
title: "Create Style Guide"
method: POST
path: "/style-guides"
tags: ["Style Guides"]
---

# Create Style Guide

`POST /style-guides`

## Request

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

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

## Request body

- EnterpriseStyleGuideCreateForm
  - `name` string, required: Style Guide name
  - `groupId` integer, nullable: Group Identifier - defines group to which Style Guide is added. If omitted, root group is used.
  - `aiInstructions` string, nullable: Rules to be used by AI models __Note:__ `maxLength` counts bytes, not characters — a non-Latin value reaches the limit two to four times sooner than its character count suggests
  - `languageIds` string[]: Style Guide Language Identifier list. Get via [List Supported Languages](#operation/api.languages.getMany)
  - `projectIds` integer[]: Project ids to assign style guide to
  - `isShared` boolean: Whether the style guide should be shared across all projects within the group
  - `storageId` integer, nullable, required: Storage identifier.

## Response `201`

Style Guide was successfully created

- EnterpriseStyleGuideResource: 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` EnterpriseStyleGuide, required
    - `id` integer
    - `groupId` integer
    - `name` string
    - `aiInstructions` string, nullable
    - `userId` integer
    - `languageIds` string[], nullable
    - `projectIds` integer[], nullable
    - `isShared` boolean: Whether the style guide should be shared across all projects within the group
    - `webUrl` string
    - `downloadLink` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: User not found
- `405`: Method Not Allowed

---

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