Follow a user
POST
/users/{user}/follow
const url = 'https://feed.work.optidata.cloud/api/users/9ba64b0e-69b4-4639-a01b-4ac5c5f70a24/follow';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”user
required
string format: uuid
UUID of the user.
Responses
Section titled “ Responses ”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"}