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

# PUT /userprofiles/{userprofilesId}/contentCategories

`PUT /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/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates an existing content category.

## Path parameters

- `userprofilesId` string, 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)
