# General Translation Platform: コンテキストグループを割り当てる
URL: https://generaltranslation.com/ja/docs/platform/openapi/reference/context-groups/assign-context-group.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: グループを最も低い優先度でプロジェクトに割り当てます。org:context:write 権限が必要です。

{/* このファイルは Fumadocs によって生成されました。直接編集しないでください。変更するには、生成コマンドを再実行してください。 */}

## Endpoint

`PUT https://api.gtx.dev/v2/projects/{projectId}/context-groups/{groupId}`

**Operation ID:** `assignContextGroup`

**Tags:** `Context groups`

**Summary:** Assign a context group

Assigns the group to the project at the lowest priority. Requires `org:context:write`.

Authentication: required. Send an API key in the `Authorization: Bearer <key>` header when authenticating.

### Parameters

- `projectId` (path, string, required): Project ID.
- `groupId` (path, string, required): Context group ID.
- `gt-api-version` (header, "2026-10-08.v1", optional): API contract version. Defaults to the oldest supported version.

### Responses

**200**: Already assigned; nothing changes, and repeating it never moves a group that was reordered.
Response body (`application/json`, object):
- `committed` (true, required)
- `created` (boolean, required): False when the group was already assigned; nothing changed.

**201**: Context group assigned
Response body (`application/json`, object):
- `committed` (true, required)
- `created` (boolean, required): False when the group was already assigned; nothing changed.

**400**: The request is malformed or failed validation.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**401**: Authentication is missing or invalid.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**403**: The caller is authenticated but not allowed to perform this operation or access the requested resource.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**404**: The requested resource was not found.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**429**: Too many requests. The rate limit was exceeded.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

**500**: An unexpected server error occurred.
Response body (`application/json`, object):
- `error` (string, required)

Response body (`text/html`, string):

Complete OpenAPI 3.1 specification: https://generaltranslation.com/openapi.yaml

OpenAPI schema: [openapi.json](https://generaltranslation.com/openapi.json)

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
