/ Platform API
Platform API
    Chat Platform API v3
    Chat Platform API
    Chat Platform API
    Version 3

    Close a poll

    Copy link

    This action closes a poll and prevents users from voting any further.


    HTTP request

    Copy link
    PUT https://api-{application_id}.sendbird.com/v3/polls/{poll_id}/close
    

    Note: If you are using the in-app channel in Delight AI agent, the endpoint for your API request should start with https://api-{application_id}.svc.delight.ai/v3 instead of https://api-{application_id}.sendbird.com/v3. For more details, refer to our Delight AI agent guide.


    Parameters

    Copy link

    The following table lists the parameters that this action supports.

    Required
    Parameter nameTypeDescription

    poll_id

    integer

    Specifies the unique ID of the poll.


    Response

    Copy link

    If successful, this action returns a poll resource with its updated status in the response body.

    In the case of an error, an error object is returned. A detailed list of error codes is available here.