Browse the help center

Update an advertising category

Renames an advertising category, or changes whether it is PUBLIC or INTERNAL.

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

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

Path Params

categoryId integer required

Advertising category id

5

Form Params

name string

New name, unique within its list (compared without case), at most 128 characters. Omit to keep the current one

Automotive

type string

PUBLIC or INTERNAL (or their integer ids 1 and 2). Omit to keep the current one

PUBLIC

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 ADVERTISING_CATEGORIES_MANAGEMENT admin permission

404

No advertising category with this id

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.