Skip to content

Pin a community

POST
/categories/{category}/pin
curl --request POST \
--url https://feed.work.optidata.cloud/api/categories/864/pin \
--header 'Authorization: Bearer <token>'

Pins the community for the caller, so it sticks to the top of their community list.

category
required
integer

Numeric id of the community.

Pin changes applied.

Media typeapplication/json

Which pins changed.

object
attached
required
Array<integer>
detached
required
Array<integer>
updated
required
Array<integer>
Examples
Exampleexample
{
"attached": [
864
],
"detached": [],
"updated": []
}

No authentication key was sent.

Media typeapplication/json

Authentication failures use an error key.

object
error
required
string
Examples
Exampleexample
{
"error": "JWT passport exception: Missing bearer token in request"
}

No matching resource, or it is not reachable through this path.

Media typeapplication/json
object
message
required
string
Examples
Exampleexample
{
"message": "No query results for model [App\\Models\\Category] 864"
}

The authentication key is expired or not recognised. Get a fresh one and retry.

Media typeapplication/json

Authentication failures use an error key.

object
error
required
string
Examples
Exampleexample
{
"error": "JWT passport expired: Passport expired"
}