Removes a follow relationship by the follow record ID. Only the follower (the user who created the follow) can delete it. Use Unfollow User instead if you only have the target user’s ID.
Path Parameters
string
required
The ID (UUID) of the follow record to delete.
Query Parameters
string
Service key only, and required with one: the user this request acts as. Must be the follower. A user token always acts as its own user and must not send it (400 follow/acting-user-not-allowed).
Response
On success, returns HTTP 204 with no body.
Error Responses
Follow Not Found — 404
{ "error": "Follow relationship does not exist.", "code": "follow/not-found"}
Forbidden — 403
{ "error": "You do not have permission to delete this follow relationship.", "code": "follow/forbidden"}
Missing User — 400
A service key sent no actingUserId.
{ "error": "A service key must send actingUserId: the user this request acts as.", "code": "follow/missing-user-id"}
Acting User Not Allowed — 400
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
{ "error": "actingUserId is only accepted with a service key. A user's own token always acts as that user.", "code": "follow/acting-user-not-allowed"}
User Not Found — 404
Returned when a service key names an actingUserId that isn’t a user in this project.
{ "error": "No user with this actingUserId exists in this project.", "code": "follow/user-not-found" }
Unsupported Parameter — 400
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
{ "error": "`userId` was renamed to `actingUserId`: send the user this service key acts as in `actingUserId`.", "code": "follow/unsupported-param", "param": "userId"}
With a user token, or with no credentials:
{ "error": "`userId` isn't accepted here: a user's own token always acts as that user.", "code": "follow/unsupported-param", "param": "userId"}