curl --request DELETE \
--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
}
]
}
Unblock a User
curl --request DELETE \
--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
Unblock user response
The response is of type object
.