Skip to main content
POST
/
posts
/
{post_id}
/
categories
Attach a category to a post
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"
}

Authorizations

Authorization
string
header
required

Path Parameters

post_id
integer
required
Example:

Body

application/json
ID
integer

Response

ID
string
Name
string
CreatedAt
string
Example:
UpdatedAt
string
Example: