cURL
curl --request POST \ --url http://localhost:3001/portal-api/posts/{post_id}/categories \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "ID": 123 }'
{ "ID": "<string>", "Name": "<string>", "CreatedAt": "2023-06-25 13:37", "UpdatedAt": "2023-06-25 13:37" }
Attach a category to a specific post.
UID of a post
1
Unique identifier for the category
Created
Name of the category
Timestamp of when this category was created
"2023-06-25 13:37"
Timestamp of when this category was last updated
Was this page helpful?