Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
User public id
curl --request POST \
--url https://apix.us.amity.co/api/v4/me/user-blocks/{userId} \
--header 'Authorization: Bearer <token>'{
"follows": [
{
"from": "<string>",
"fromUserPublicId": "<string>",
"fromUserInternalId": "<string>",
"to": "<string>",
"toUserPublicId": "<string>",
"toUserInternalId": "<string>",
"status": "blocked",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"followCounts": [
{
"userId": "<string>",
"followerCount": 123,
"followingCount": 123,
"pendingCount": 123
}
]
}Block a User
curl --request POST \
--url https://apix.us.amity.co/api/v4/me/user-blocks/{userId} \
--header 'Authorization: Bearer <token>'{
"follows": [
{
"from": "<string>",
"fromUserPublicId": "<string>",
"fromUserInternalId": "<string>",
"to": "<string>",
"toUserPublicId": "<string>",
"toUserInternalId": "<string>",
"status": "blocked",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"followCounts": [
{
"userId": "<string>",
"followerCount": 123,
"followingCount": 123,
"pendingCount": 123
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
User public id