product:chat

Block users

post/users/block

Request

  • Base URL
    https://chat.stream-io-api.com
  • URL
    https://chat.stream-io-api.com/users/block
  • Auth
    • API key in header Authorization and API key in query parameter api_key and API key in header Stream-Auth-Type
    • or API key in query parameter api_key and API key in header Stream-Auth-Type

Request body

blocked_user_idstring required

User id to block

user_idstring

Response

Successful response

blocked_by_user_idstring required

User id who blocked another user

blocked_user_idstring required

User id who got blocked

created_atstring date-time required

Timestamp when the user was blocked

durationstring required

Duration of the request in milliseconds

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      the request property /// became optional

    • info

      the request property /// became optional

    • info

      the request property /// became optional