curl --request DELETE \
--url https://apix.us.amity.co/api/v2/users/{userId}/flags \
--header 'Authorization: Bearer <token>'
{
"_id": "<string>",
"path": "<string>",
"userId": "<string>",
"roles": [
"<string>"
],
"displayName": "<string>",
"flagCount": 123,
"hashFlag": {
"bits": 123,
"hashes": 123,
"hash": [
"<string>"
]
},
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"isDeleted": true
}
Clear Flag a User
curl --request DELETE \
--url https://apix.us.amity.co/api/v2/users/{userId}/flags \
--header 'Authorization: Bearer <token>'
{
"_id": "<string>",
"path": "<string>",
"userId": "<string>",
"roles": [
"<string>"
],
"displayName": "<string>",
"flagCount": 123,
"hashFlag": {
"bits": 123,
"hashes": 123,
"hash": [
"<string>"
]
},
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"isDeleted": true
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
User
The response is of type object
.