Skip to content

Unpin a community

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

Removes the caller’s pin from the community.

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": [],
"detached": [],
"updated": [
864
]
}

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"
}