POST
/
blogs
/
v3
/
topics
Create a new blog topic
curl --request POST \
  --url https://api.hubapi.com/blogs/v3/topics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Hey A New Topic",
  "description": "This is a topic description"
}'
{
  "id": 349001123123123,
  "portalId": 62515,
  "name": "Hey a new topic",
  "slug": "hey-a-new-topic",
  "description": "This is a topic description",
  "created": 1381896200000,
  "updated": 1381896200000,
  "deletedAt": 0,
  "totalPosts": null,
  "livePosts": null,
  "lastUsed": null,
  "associatedBlogIds": [],
  "publicUrl": null,
  "status": "inactive"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

casing
enum<string>

Use the casing=snake parameter to change the API's casing for allowed JSON fields (below) to snake_case, rather than camelCase, which is the default. This option is provided for backwards-compatibility and ease of migration from Content v2 APIs, which used snake_case.

Available options:
snake

Body

application/json

Response

201
application/json

successful operation

The response is of type object.