> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Channel Thread

> This endpoint creates a new channel thread

### Body

<ParamField body="id" type="string">
  This is the ID of the channel thread to be created.
</ParamField>

### Response

<ResponseField name="success" type="number">
  Indicates whether the call was successful. 1 if successful, 0 if not.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --location --request PUT 'https://api.stateset.com/v1/channel_thread' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token <token>' \
  --data-raw '{
      "id": ""
  }'
  ```

  ```javascript Node.js theme={null}

  const created = await stateset.channel.update({
    id: "",
  });

  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
      "data": {
          "insert_channel_thread": {
          "returning": [
              {
              "id": "",
              "name": "",
              "uuid": "",
              "user_id": ""
              }
          ]
          }
      }

  }
  ```
</ResponseExample>
