---
title: "Create an Annotation Category"
method: POST
path: "/annotation_categories"
tags: ["Annotations"]
---

# Create an Annotation Category

`POST /annotation_categories`

Create an annotation category.

## Request body

- object
  - `name` string, required
  - `import_name` string — defaults to the value from 'name' when absent
  - `start_offset` integer — Pre-roll in whole seconds
  - `end_offset` integer — Post-roll in whole seconds
  - `default_color` string — HTML color, e.g. #FF5500, the color to use for annotations of this type
  - `is_bakeable` integer — 0(false) or 1(true) annotation category should be baked. If is_event = 1 then is_bakeable will be 0
  - `is_event` integer — 0(false) or 1(true). An event might be a single event in time (like a Goal Keeper Save) vs a period of time (like ball in possession)
  - `is_editable` integer — 0(false) or 1(true). An event might be a single event in time (like a Goal Keeper Save) vs a period of time (like ball in possession)

## Response `200`

Newly created annotation category

- object — Annotation Category
  - `id` string
  - `name` string — Display name
  - `import_name` string — Internal name
  - `start_offset` integer — Pre-roll in whole seconds
  - `end_offset` integer — Post-roll in whole seconds
  - `default_color` string — HTML color, e.g. #FF5500, the color to use for annotations of this type
  - `is_bakeable` integer — 0(false) or 1(true) annotation category should be baked. If is_event = 1 then is_bakeable will be 0
  - `is_event` integer — 0(false) or 1(true). An event might be a single event in time (like a Goal Keeper Save) vs a period of time (like ball in possession)
  - `created_at` string
  - `modified_at` string
  - `is_editable` integer

## Other responses

- `401` — Unauthorized
- `404` — Annotation category not created

---

[API](https://skmtc.net/catapultsports/apis/openfield-connect-v6-api.md) · [All operations](https://skmtc.net/catapultsports/apis/openfield-connect-v6-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/catapultsports/openfield-connect-v6-api/revisions/b68eadaba68c/schema)
