コンテンツにスキップ

/v0/accounts/:name/follow (POST)

POST
/v0/accounts/:name/follow
curl --request POST \
--url http://localhost:3000/v0/accounts/:name/follow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '"example"'
name
required

Characters must be [A-Za-z0-9-.] The first and last characters must be [A-Za-z0-9-.]

string
>= 3 characters <= 64 characters
Example
example_man

Characters must be [A-Za-z0-9-.] The first and last characters must be [A-Za-z0-9-.]

Media type application/json
Example generated
example

Accepted(No Content)

Forbidden

Media type application/json

You can not do this action.

object
error
required
Any of:

You are already following this account.

string
Allowed values: ALREADY_FOLLOWING
Example
{
"error": "ALREADY_FOLLOWING"
}

Not Found

Media type application/json

Account not found

object
error
required

Account not found.

string
Allowed values: ACCOUNT_NOT_FOUND
Example
{
"error": "ACCOUNT_NOT_FOUND"
}

Internal Server Error

Media type application/json
object
error
required

Internal server error.

string
Allowed values: INTERNAL_ERROR
Example
{
"error": "INTERNAL_ERROR"
}