---
title: "Manage Prompt Tags Public"
method: POST
path: "/manage-prompt-tags"
tags: ["public-api"]
---

# Manage Prompt Tags Public

`POST /manage-prompt-tags`

## Request

- Base URL: `https://api.trakkr.ai`
- URL: `https://api.trakkr.ai/manage-prompt-tags`
- Auth: HTTP bearer

Create or edit a tag, or add/remove it across one or more prompts.

## Request body

- ManagePromptTagsRequest: POST /manage-prompt-tags request body.
  - `action` 'create' | 'update' | 'delete' | 'add' | 'remove', required
  - `brand_id` string, uuid, required
  - `tag_id` string, uuid, nullable
  - `tag_name` string, nullable
  - `colour` string, nullable
  - `prompt_ids` string[]
  - `create_if_missing` boolean

## Response `200`

Successful Response

- ManagePromptTagsResponse: POST /manage-prompt-tags response.
  - `success` boolean, required
  - `action` string, required
  - `tag` TagItem, required: Tag in API response.
    - `id` string, required
    - `name` string, required
    - `colour` string, nullable
  - `created` boolean
  - `affected_prompt_ids` string[]
  - `affected_count` integer
  - `unchanged_count` integer

## Other responses

- `401`: Missing, malformed, or expired credentials
- `402`: The current plan does not fund this operation
- `403`: Invalid credentials, missing brand access, or insufficient role
- `422`: Validation Error
- `429`: Rate limit exceeded
- `500`: The operation failed
- `503`: Authentication, entitlement, or a required dependency is temporarily unavailable

---

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