Unfollow User

Endpoint

URL: /:projectId/users/:userId/follow

Method: DELETE

Authentication Required: Yes


Description

Remove an existing follow relationship between the authenticated user and the specified user.


Request

Path Parameters

ParameterTypeRequiredDescription
userIdstringYesID of the user to unfollow.

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token for authentication.

Body Parameters

None

Example Request

DELETE /proj1234/users/abcd123/follow
Authorization: Bearer <ACCESS_TOKEN>

Response

Success Response (204 No Content)

(No response body)

Error Responses

Follow Not Found (404 Not Found)

{
  "error": "Follow relationship does not exist.",
  "code": "follow/not-found"
}

Server Error (500 Internal Server Error)

{
  "error": "Internal server error.",
  "code": "follow/server-error",
  "details": "<Error message>"
}

Notes

  • Requires authentication.
  • Returns 204 No Content on successful deletion.
  • Returns 404 if no follow relationship was found.