chats
group

Demote Participant to Member

This endpoint demotes a participant in a group to member

post/chats/{chat_id}/demote

Request

  • Base URL
    https://api.periskope.app/v1
  • URL
    https://api.periskope.app/v1/chats/{chat_id}/demote
  • Auth
    HTTP bearer

Headers

x-phonestring
Example:{{orgPhone}}

Please provide the number of the phone you want to call with this API in the header. The number must be in country code + number format without any characters or spaces, e.g. 919876543210; Alternatively, provide the phone_id (phone-xxxxxxxxxxxx) in the header

Request body

participantsstring[] required
  • Provide a list of participants to be demoted in the group (in country_code + number format).

Example request

{
  "participants": [
    "919537851844"
  ]
}

Response

200 OK

object required

The response is an object with is_success value for each participant

Changes

No recorded changes to this operation across all 2 revisions of this API.