Skip to main content
PUT
/
post
/
category
/
{identifier}
Update post category
curl --request PUT \
  --url https://api.sendx.io/api/v1/rest/post/category/{identifier} \
  --header 'Content-Type: application/json' \
  --header 'X-Team-ApiKey: <api-key>' \
  --data '{
  "name": "Product Updates"
}'
{
"id": "post_category_YzS1wOU20yw87UUHKxMzwn",
"name": "Product Updates",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}

Authorizations

X-Team-ApiKey
string
header
required

Team API key for authentication. Find your API key in SendX Settings → Team API Key.

Example:

X-Team-ApiKey: your_team_api_key_here

Path Parameters

identifier
string
required

The unique post category identifier to retrieve.

  • post_category_YzS1wOU20yw87UUHKxMzwn
Example:

"post_category_YzS1wOU20yw87UUHKxMzwn"

Body

application/json
name
string
required

Category name

Example:

"Product Updates"

Response

✅ Category updated successfully

id
string

Id for the post category

Example:

"post_category_YzS1wOU20yw87UUHKxMzwn"

name
string

Name for the post category

Example:

"Product Updates"

created
string<date-time>

Date and time when the post category was created

updated
string<date-time>

Date and time when the post category was last updated

I