---
title: "Set a team's prompt"
method: PUT
path: "/v1/org/prompts/teams/{teamId}"
tags: ["Organizations"]
---

# Set a team's prompt

`PUT /v1/org/prompts/teams/{teamId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/prompts/teams/{teamId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Sets the system prompt one team's members' agents follow, after the prompt for everyone. The first save creates the prompt and assigns it to the team. Requires the Manage prompts permission, a recent sign-in and the Prompts feature.

## Path parameters

- `teamId` string, typeid, required

## Request body

- OrgPromptWrite
  - `content` string, required

## Response `200`

Prompts saved.

- OrgPromptSettings
  - `everyone` OrgPrompt, required
    - `id` string, required
    - `name` string, required
    - `content` string, required
    - `assignment` OrgPromptAssignment, required
      - `everyone` boolean, required
      - `teamIds` string[], required
      - `memberIds` string[], required
    - `updatedAt` string, date-time, required
  - `teams` OrgPromptTeam[], required
    - `teamId` string, required
    - `name` string, required
    - `prompt` OrgPrompt, required
      - `id` string, required
      - `name` string, required
      - `content` string, required
      - `assignment` OrgPromptAssignment, required
        - `everyone` boolean, required
        - `teamIds` string[], required
        - `memberIds` string[], required
      - `updatedAt` string, date-time, required
  - `canEdit` boolean, required

## Other responses

- `400`: The prompt was empty, too long, or the request was invalid.
- `401`: Authentication required.
- `403`: The caller lacks the Manage prompts permission or needs to sign in again.
- `404`: The organization or team was not found, or Prompts is off for the organization.

## Changes

- **2026-10-23** `c93387179b31`: 3 info
  - response property `details/items/path/items/` list-of-types was narrowed by removing types `number` from media type `application/json` of response `400`
  - the `everyone/anyOf[#/components/schemas/OrgPrompt]/updatedAt` response's property pattern was changed from `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` to `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` for the status `200`
  - the `teams/items/prompt/anyOf[#/components/schemas/OrgPrompt]/updatedAt` response's property pattern was changed from `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` to `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` for the status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/prompts/teams/:teamId/put.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/8170cf4a92ca?raw)
