---
title: "Create a New Category"
method: POST
path: "/program-categories/{subdomain}"
---

# Create a New Category

`POST /program-categories/{subdomain}`

The `POST` method creates a new category document. `name` is the only required field in the payload. The `slug` is auto-generated based on the `name`, while `subdomain` is auto-generated from the route at which you are posting.

## Request body

- CategoryPost
  - `data` object, required
    - `attributes` object, required
      - `color` string
      - `description` string
      - `image` string, uri
      - `name` string, required
      - `slug` string
      - `subdomain` string
    - `id` string
    - `type` string, required

## Response `201`

- CategoryResponse
  - `data` object, required
    - `type` string, required
    - `id` string, required
    - `attributes` object, required
      - `color` string, required
      - `description` string, required
      - `image` string, required
      - `name` string, required
      - `slug` string, required
      - `subdomain` string, required

## Other responses

- `400`
- `409`

---

[API](https://skmtc.net/lightcast/apis/alumni-pathways-2-0.md) · [All operations](https://skmtc.net/lightcast/apis/alumni-pathways-2-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightcast/alumni-pathways-2-0/versions/fc66b9877391/schema)
