Adds a publishing category to the network's list, the one sites and placements are classified with.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/categories/publishing/create.do
Adds a publishing category to the network's list, the one sites and placements are classified with. 'name' is required and must not be taken by another publishing category; 'type' defaults to PUBLIC. Invalid values come back per field in 'errors'. The answer is the stored category, in the shape the single-category read returns. Requires the PUBLISHER_CATEGORIES_MANAGEMENT admin permission (Admin -> Inventory Categories).
Form Params
namestringrequired
Category name, unique within its list (advertising or publishing categories, compared without case), at most 128 characters
Automotive
typestring
PUBLIC or INTERNAL (or their integer ids 1 and 2). Defaults to PUBLIC
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 PUBLISHER_CATEGORIES_MANAGEMENT admin permission