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

# Create an Annotation Category

`POST /annotation_categories`

## Request

- Base URL: `https://connect-au.catapultsports.com/api/v6`
- URL: `https://connect-au.catapultsports.com/api/v6/annotation_categories`
- Auth: HTTP bearer

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.dev/catapultsports/apis/openfield-connect-v6-api.md) - [All operations](https://skmtc.dev/catapultsports/apis/openfield-connect-v6-api/llms.txt) - [OpenAPI document](https://skmtc.dev/catapultsports/apis/openfield-connect-v6-api/revisions/4f0d7082f399?raw)
