POST
/
users
/
toggle-follow
/
{identifier}
Toggle follow user
curl --request POST \
  --url https://localhost:5000/users/toggle-follow/{identifier} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "isFollowing": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

identifier
string
required

Username or user ID

Response

Follow status updated

success
boolean
Example:

true

message
string
isFollowing
boolean