---
title: "Assign a posture to a team"
method: POST
path: "/postures/{posture_id}/assign"
tags: ["Postures"]
---

# Assign a posture to a team

`POST /postures/{posture_id}/assign`

## Request

- Base URL: `https://api.mnemom.ai/v1`
- URL: `https://api.mnemom.ai/v1/postures/{posture_id}/assign`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Mnemom-Api-Key`

Sets the team's active posture. One active posture per team. Authorized: org_admin / org_owner / team_admin. Authorization: an org-scoped `posture_id` in an org the caller does not belong to, and a `team_id` in an org the caller does not belong to, each return the same 404 as a nonexistent id. The caller must hold admin rights on the target team (`team_id`, resolved to its org from the DB; a member without them receives 403), AND an org-scoped posture must belong to that team's org (403 otherwise), so nothing can be cross-assigned.

## Path parameters

- `posture_id` string, required

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `team_id` string, uuid, required: UUID of the team to assign this posture to (becomes the team's single active posture).
  - `revision_id` string: Pin to a specific revision (default: current_revision_id).

## Response `201`

Assignment created.

- PostureAssignment: Team→posture binding (one active per team).
  - `team_id` string, uuid, required
  - `posture_id` string, required
  - `assigned_revision_id` string, nullable: Revision pinned at assignment time (null = tracks current_revision_id).
  - `revision_id` string: Pinned revision (optional; defaults to current).
  - `assigned_by` string, uuid, nullable
  - `assigned_at` string, date-time, required
  - `replaced_prior` boolean: `true` when this assignment displaced a previously-active assignment on the team.

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `409`: Resource conflict — the request cannot proceed because of a current state conflict (e.g., resource already exists, version mismatch, in-flight idempotency key with a different body).
- `429`: Rate-limit exceeded. The global per-IP limiter (100 requests/minute, applied to every `/v1/*` route) rejected this request. Back off until the window resets — `Retry-After` carries the cooldown in seconds and `X-RateLimit-Reset` the absolute reset time.
- `500`: Server error — request was well-formed but the server failed to fulfill it. Typically a downstream dependency (DB / RPC / external API) returned an unexpected error.

---

[API](https://skmtc.dev/mnemom/apis/mnemom-api.md) · [All operations](https://skmtc.dev/mnemom/apis/mnemom-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mnemom/apis/mnemom-api/revisions/274b7a6ea182?raw)
