Skip to main content
GET
/
posts
/
{post_id}
/
categories
List categories for a post
curl --request GET \
  --url http://localhost:3001/portal-api/posts/{post_id}/categories \
  --header 'Authorization: <api-key>'
[
  {
    "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

UID of a post

Example:

1

Query Parameters

limit
integer

Maximum number of records to return for this request. Overrides the row count only, not the page offset (which is always based on per_page), so use per_page for pagination rather than combining limit with page. Defaults to the per_page value.

per_page
integer
default:20

Items per page. Defaults to the resource-specific page count if configured, otherwise 20

page
integer
default:1

Page number. Defaults to 1 when omitted

Response

200 - application/json

OK

ID
string

Unique identifier for the category

Name
string

Name of the category

CreatedAt
string

Timestamp of when this category was created

Pattern: ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$
Example:

"2023-06-25 13:37"

UpdatedAt
string

Timestamp of when this category was last updated

Pattern: ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$
Example:

"2023-06-25 13:37"