---
title: "Update a publishing category"
type: reference
method: POST
path: /rest-api/categories/publishing/{categoryId}/update.do
tag: "Categories"
---

# Update a publishing category

`POST https://YOUR-NETWORK-DOMAIN/rest-api/categories/publishing/{categoryId}/update.do`

Renames a publishing category, or changes whether it is PUBLIC or INTERNAL. Both fields are optional and what is not sent keeps its value. The sites and placements already classified with the category keep it: only its name and type change. Invalid values come back per field in 'errors'. Requires the PUBLISHER_CATEGORIES_MANAGEMENT admin permission (Admin -> Inventory Categories).

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `categoryId` | integer | yes | `5` | Publishing category id |

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `name` | string | no | `Automotive` | New name, unique within its list (compared without case), at most 128 characters. Omit to keep the current one |
| `type` | string | no | `PUBLIC` | PUBLIC or INTERNAL (or their integer ids 1 and 2). Omit to keep the current one |

## Responses

- `200` — {success, category: {id, name, type}}
- `400` — Invalid request, each problem named in errors by field (name, type)
- `401` — Authentication error
- `403` — Without the PUBLISHER_CATEGORIES_MANAGEMENT admin permission
- `404` — No publishing category with this id

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/categories/publishing/5/update.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'name=Automotive' \
  --data-urlencode 'type=PUBLIC'
```

Source: https://epom.com/ad-server/docs/api/categories/post-categories-publishing-update