# General Translation Platform: Assegnare un context group
URL: https://generaltranslation.com/it/docs/platform/openapi/reference/context-management/assign-group.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Assegna il gruppo al progetto con la priorità più bassa (201). Se è già assegnato, non cambia nulla (200) e ripetere l'operazione non sposta mai un gruppo che è stato riordinato. Richiede org:context:write. Riferimento API per Assegnare un context group.

{/* Questo file è stato generato da Fumadocs. Non modificarlo direttamente. Per apportare modifiche, eseguire nuovamente il comando di generazione. */}

## Endpoint

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

**Operation ID:** `assignContextGroup`

**Tags:** `Context Management`

**Summary:** Assign a context group

Assigns the group to the project at the lowest priority (201). If it's already assigned, nothing changes (200), and repeating it never moves a group that was reordered. 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, "2025-01-01.v0" | "2025-11-03.v1" | "2026-02-18.v1" | "2026-03-06.v1", optional): API contract version. Defaults to the oldest supported version.

### Responses

**200**: Already assigned
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**: Request error
Response body (`application/json`, object):
- `error` (string, required)

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

**401**: Request error
Response body (`application/json`, object):
- `error` (string, required)

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

**403**: Request error
Response body (`application/json`, object):
- `error` (string, required)

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

**404**: Request error
Response body (`application/json`, object):
- `error` (string, required)

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

**429**: Request error
Response body (`application/json`, object):
- `error` (string, required)

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

**500**: Request error
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.
