@@ -7280,6 +7280,35 @@ components:
72807280 type:
72817281 $ref: '#/components/schemas/CaseType'
72827282 type: object
7283+ CaseComment:
7284+ description: Case comment
7285+ properties:
7286+ attributes:
7287+ $ref: '#/components/schemas/CaseCommentAttributes'
7288+ type:
7289+ $ref: '#/components/schemas/CaseResourceType'
7290+ required:
7291+ - attributes
7292+ - type
7293+ type: object
7294+ CaseCommentAttributes:
7295+ description: Case comment attributes
7296+ properties:
7297+ comment:
7298+ description: The `CaseCommentAttributes` `message`.
7299+ example: This is my comment !
7300+ type: string
7301+ required:
7302+ - comment
7303+ type: object
7304+ CaseCommentRequest:
7305+ description: Case comment request
7306+ properties:
7307+ data:
7308+ $ref: '#/components/schemas/CaseComment'
7309+ required:
7310+ - data
7311+ type: object
72837312 CaseCreate:
72847313 description: Case creation data
72857314 properties:
@@ -42538,6 +42567,120 @@ components:
4253842567 - time_zone
4253942568 - restrictions
4254042569 type: object
42570+ TimelineCell:
42571+ description: timeline cell
42572+ properties:
42573+ author:
42574+ $ref: '#/components/schemas/TimelineCellAuthor'
42575+ cell_content:
42576+ $ref: '#/components/schemas/TimelineCellContent'
42577+ created_at:
42578+ description: Timestamp of when the cell was created
42579+ format: date-time
42580+ readOnly: true
42581+ type: string
42582+ deleted_at:
42583+ description: Timestamp of when the cell was deleted
42584+ format: date-time
42585+ readOnly: true
42586+ type: string
42587+ modified_at:
42588+ description: Timestamp of when the cell was last modified
42589+ format: date-time
42590+ readOnly: true
42591+ type: string
42592+ type:
42593+ $ref: '#/components/schemas/TimelineCellType'
42594+ type: object
42595+ TimelineCellAuthor:
42596+ description: author of the timeline cell
42597+ oneOf:
42598+ - $ref: '#/components/schemas/TimelineCellAuthorUser'
42599+ TimelineCellAuthorUser:
42600+ description: timeline cell user author
42601+ properties:
42602+ content:
42603+ $ref: '#/components/schemas/TimelineCellAuthorUserContent'
42604+ type:
42605+ $ref: '#/components/schemas/TimelineCellAuthorUserType'
42606+ type: object
42607+ TimelineCellAuthorUserContent:
42608+ description: user author content.
42609+ properties:
42610+ email:
42611+ description: user email
42612+ type: string
42613+ handle:
42614+ description: user handle
42615+ type: string
42616+ id:
42617+ description: user UUID
42618+ type: string
42619+ name:
42620+ description: user name
42621+ type: string
42622+ type: object
42623+ TimelineCellAuthorUserType:
42624+ description: user author type.
42625+ enum:
42626+ - USER
42627+ example: USER
42628+ type: string
42629+ x-enum-varnames:
42630+ - USER
42631+ TimelineCellContent:
42632+ description: timeline cell content
42633+ oneOf:
42634+ - $ref: '#/components/schemas/TimelineCellContentComment'
42635+ TimelineCellContentComment:
42636+ description: comment content
42637+ properties:
42638+ message:
42639+ description: comment message
42640+ type: string
42641+ type: object
42642+ TimelineCellResource:
42643+ description: Timeline cell JSON:API resource
42644+ properties:
42645+ attributes:
42646+ $ref: '#/components/schemas/TimelineCell'
42647+ id:
42648+ description: Timeline cell's identifier
42649+ example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
42650+ type: string
42651+ type:
42652+ $ref: '#/components/schemas/TimelineCellResourceType'
42653+ required:
42654+ - id
42655+ - type
42656+ - attributes
42657+ type: object
42658+ TimelineCellResourceType:
42659+ default: timeline_cell
42660+ description: Timeline cell JSON:API resource type
42661+ enum:
42662+ - timeline_cell
42663+ example: timeline_cell
42664+ type: string
42665+ x-enum-varnames:
42666+ - TIMELINE_CELL
42667+ TimelineCellType:
42668+ description: Timeline cell content type
42669+ enum:
42670+ - COMMENT
42671+ example: COMMENT
42672+ type: string
42673+ x-enum-varnames:
42674+ - COMMENT
42675+ TimelineResponse:
42676+ description: Timeline response
42677+ properties:
42678+ data:
42679+ description: The `TimelineResponse` `data`.
42680+ items:
42681+ $ref: '#/components/schemas/TimelineCellResource'
42682+ type: array
42683+ type: object
4254142684 TimeseriesFormulaQueryRequest:
4254242685 description: A request wrapper around a single timeseries query to be executed.
4254342686 properties:
@@ -47570,6 +47713,39 @@ paths:
4757047713 summary: Update case attributes
4757147714 tags:
4757247715 - Case Management
47716+ /api/v2/cases/{case_id}/comment:
47717+ post:
47718+ description: Comment case
47719+ operationId: CommentCase
47720+ parameters:
47721+ - $ref: '#/components/parameters/CaseIDPathParameter'
47722+ requestBody:
47723+ content:
47724+ application/json:
47725+ schema:
47726+ $ref: '#/components/schemas/CaseCommentRequest'
47727+ description: Case comment payload
47728+ required: true
47729+ responses:
47730+ '200':
47731+ content:
47732+ application/json:
47733+ schema:
47734+ $ref: '#/components/schemas/TimelineResponse'
47735+ description: OK
47736+ '400':
47737+ $ref: '#/components/responses/BadRequestResponse'
47738+ '401':
47739+ $ref: '#/components/responses/UnauthorizedResponse'
47740+ '403':
47741+ $ref: '#/components/responses/ForbiddenResponse'
47742+ '404':
47743+ $ref: '#/components/responses/NotFoundResponse'
47744+ '429':
47745+ $ref: '#/components/responses/TooManyRequestsResponse'
47746+ summary: Comment case
47747+ tags:
47748+ - Case Management
4757347749 /api/v2/cases/{case_id}/priority:
4757447750 post:
4757547751 description: Update case priority
0 commit comments