Skip to content

Follow a user

POST
/users/{user}/follow
curl --request POST \
--url https://feed.work.optidata.cloud/api/users/9ba64b0e-69b4-4639-a01b-4ac5c5f70a24/follow \
--header 'Authorization: Bearer <token>'

Follows the given user. Idempotent; returns an empty 200.

user
required
string format: uuid

UUID of the user.

Now following the user.

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