---
title: "Update a ticket comment"
method: PUT
path: "/tickets/comments/{id}"
tags: ["TicketComments"]
---

# Update a ticket comment

`PUT /tickets/comments/{id}`

## Request

- Base URL: `https://api.c1st.com/api`
- URL: `https://api.c1st.com/api/tickets/comments/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Request body

- SetTicketComment: The body of the request used for creating / updating TicketComments
  - `content` TicketComment
    - `id` integer: A unique TicketComment ID
    - `taskid` integer
    - `userid` integer
    - `comment` string
    - `autocomment` string, nullable
    - `created` string
    - `smslogid` integer, nullable
    - `smslog` SMSLog: A logged SMS
      - `id` integer: A unique SMSLog ID
      - `message` string, nullable
      - `size` integer, nullable: The actual SMS count after the message has been split into 160 character segments
      - `date` string
      - `phone_e164` string, nullable: The phoneno in E164 format
      - `gateway_id` integer, nullable
      - `gateway_status` string, nullable: The status of the SMS reported by the gateway system. See https://gatewayapi.com/docs/rest.html#webhooks
      - `gateway_time` integer, nullable: A unix timestamp of the moment the latest gateway_status was reported by the gateway.
      - `sendtime` string, nullable: The time of the message that should be sent.
      - `status` 'RECEIVED' | 'UNDELIVERABLE' | 'SCHEDULED' | 'SENT' | 'DELIVERED' | 'DELETED' | 'FAILED'
      - `inbound` integer: If 1 the message is an inbound message from the customer
      - `country` string: The country code of where the sms was sent to (set by gateway api)
      - `userid` integer: Userid of who sent this sms, currently faked using ticket comment
      - `template` string, nullable: The template used in this sms, currently faked using ticket comment
      - `encoding` 'gsm7' | 'ucs2', nullable
      - `error_status` string, nullable: The error status of the SMS from the batch relation

## Response `200`

Ok

- TicketCommentResponse: Response when requesting a ticket comment
  - `content` TicketComment
    - `id` integer: A unique TicketComment ID
    - `taskid` integer
    - `userid` integer
    - `comment` string
    - `autocomment` string, nullable
    - `created` string
    - `smslogid` integer, nullable
    - `smslog` SMSLog: A logged SMS
      - `id` integer: A unique SMSLog ID
      - `message` string, nullable
      - `size` integer, nullable: The actual SMS count after the message has been split into 160 character segments
      - `date` string
      - `phone_e164` string, nullable: The phoneno in E164 format
      - `gateway_id` integer, nullable
      - `gateway_status` string, nullable: The status of the SMS reported by the gateway system. See https://gatewayapi.com/docs/rest.html#webhooks
      - `gateway_time` integer, nullable: A unix timestamp of the moment the latest gateway_status was reported by the gateway.
      - `sendtime` string, nullable: The time of the message that should be sent.
      - `status` 'RECEIVED' | 'UNDELIVERABLE' | 'SCHEDULED' | 'SENT' | 'DELIVERED' | 'DELETED' | 'FAILED'
      - `inbound` integer: If 1 the message is an inbound message from the customer
      - `country` string: The country code of where the sms was sent to (set by gateway api)
      - `userid` integer: Userid of who sent this sms, currently faked using ticket comment
      - `template` string, nullable: The template used in this sms, currently faked using ticket comment
      - `encoding` 'gsm7' | 'ucs2', nullable
      - `error_status` string, nullable: The error status of the SMS from the batch relation

---

[API](https://skmtc.dev/c1st/apis/customers-1st-api.md) - [All operations](https://skmtc.dev/c1st/apis/customers-1st-api/llms.txt) - [OpenAPI document](https://skmtc.dev/c1st/apis/customers-1st-api/revisions/4250bb326f2a?raw)
