---
title: "PATCH /userprofiles/{userprofilesId}/contentCategories"
method: PATCH
path: "/userprofiles/{userprofilesId}/contentCategories"
tags: ["contentCategories"]
---

# PATCH /userprofiles/{userprofilesId}/contentCategories

`PATCH /userprofiles/{userprofilesId}/contentCategories`

## Request

- Base URL: `https://dfareporting.googleapis.com/dfareporting/v5`
- URL: `https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{userprofilesId}/contentCategories`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/dfatrafficking`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/dfatrafficking`
- TypeScript: <https://skmtc.dev/google/apis/dfareporting/docs/userprofiles/:userprofilesId/contentCategories/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates an existing content category. This method supports patch semantics.

## Path parameters

- `userprofilesId` string, required

## Query parameters

- `id` string, int64, required

## Request body

- ContentCategory
  - `accountId` string, int64: Account ID of this content category. This is a read-only field that can be left blank.
  - `id` string, int64: ID of this content category. This is a read-only, auto-generated field.
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#contentCategory".
  - `name` string: Name of this content category. This is a required field and must be less than 256 characters long and unique among content categories of the same account.

## Response `200`

Successful response

- ContentCategory
  - `accountId` string, int64: Account ID of this content category. This is a read-only field that can be left blank.
  - `id` string, int64: ID of this content category. This is a read-only, auto-generated field.
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#contentCategory".
  - `name` string: Name of this content category. This is a required field and must be less than 256 characters long and unique among content categories of the same account.

---

[API](https://skmtc.dev/google/apis/dfareporting.md) - [All operations](https://skmtc.dev/google/apis/dfareporting/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/dfareporting/revisions/be73a9a450de?raw)
