/v0/accounts/:name/follow (DELETE)
DELETE
/v0/accounts/:name/follow
const url = 'http://localhost:3000/v0/accounts/:name/follow';const options = { method: 'DELETE', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '"example"'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:3000/v0/accounts/:name/follow \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '"example"'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”name
required
Characters must be [A-Za-z0-9-.] The first and last characters must be [A-Za-z0-9-.]
string
Example
example_manCharacters must be [A-Za-z0-9-.] The first and last characters must be [A-Za-z0-9-.]
Request Body
Section titled “Request Body”Media typeapplication/json
Examplegenerated
exampleResponses
Section titled “Responses”No Content
Bad request
Media typeapplication/json
You are not following specified account.
object
error
required
You are not following this account.
string
Example
{ "error": "YOU_ARE_NOT_FOLLOWING"}Not Found
Media typeapplication/json
Account not found
object
error
required
Account not found.
string
Example
{ "error": "ACCOUNT_NOT_FOUND"}Internal Server Error
Media typeapplication/json
object
error
required
Internal server error.
string
Example
{ "error": "INTERNAL_ERROR"}