---
title: "POST /categories/{id}"
method: POST
path: "/categories/{id}"
---

# POST /categories/{id}

`POST /categories/{id}`

## Request

- Base URL: `https://docs.theeventscalendar.com/index.php?rest_route=/tribe/events/v1`
- URL: `https://docs.theeventscalendar.com/index.php?rest_route=/tribe/events/v1/categories/{id}`
- Auth: none declared

## Path parameters

- `id` integer, required

## Request body `application/x-www-form-urlencoded`

- object
  - `id` integer: the event category term ID
  - `name` string: The event category name
  - `description` string: The event category description
  - `slug` string: The event category slug
  - `parent` integer: The event category slug

## Response `200`

Returns the data of the updated event category

- Term
  - `id` integer: The WordPress term ID
  - `name` string: The term name
  - `slug` string: The term slug
  - `taxonomy` string: The taxonomy the term belongs to
  - `description` string: The term description
  - `parent` integer: The term parent term if any
  - `count` integer: The number of posts associated with the term
  - `url` string: The URL to the term archive page
  - `urls` string[]: A list of links to the term own, archive and parent REST URL

## Other responses

- `201`: Returns the data of the created event category
- `400`: A required parameter is missing or an input parameter is in the wrong format
- `403`: The user is not authorized to create event categories

---

[API](https://skmtc.dev/theeventscalendar/apis/the-events-calendar-rest-api.md) - [All operations](https://skmtc.dev/theeventscalendar/apis/the-events-calendar-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/theeventscalendar/apis/the-events-calendar-rest-api/revisions/ec2e0a6a611b?raw)
