cURL
curl --request PUT \ --url https://psn-api.paystub.dev/admin/post-categories/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "type": "article", "country": "us", "name": "<string>", "slug": "<string>" } '
{ "success": true, "data": { "category": { "id": 123, "site_id": 123, "type": "<string>", "country": "<string>", "name": "<string>", "slug": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }, "message": "Post category updated successfully" }
Update an existing post category
Use your API token
Post Category ID
Post type
article
guide
review
news
faq
Country code
us
ca
uk
au
nz
global
Category name
URL-friendly slug (generated from name if not provided)
Post category updated successfully
true
Show child attributes
"Post category updated successfully"