openapi: 3.1.0 info: title: Helpcenter PinnedConversation API version: 1.0.0 tags: - name: PinnedConversation paths: /api/v1/tickets/{ticketId}/pins/unpin: post: tags: - PinnedConversation summary: Unpin a ticket's pin description: This API deletes one or more pins from a ticket. operationId: unPinConversations parameters: - $ref: '#/components/parameters/ticketId' - $ref: ./Common.json#/components/parameters/orgId requestBody: $ref: '#/components/requestBodies/unPinConversationRequest' responses: '422': $ref: ./Common.json#/components/responses/invalidDataErrorResponse '200': $ref: '#/components/responses/unPinAConversationResponse' security: - iam-oauth2-schema: - Desk.tickets.UPDATE x-audience: - external-public /api/v1/tickets/{ticketId}/pins: get: tags: - PinnedConversation summary: Get pins of a ticket description: This API fetches the list of pins of a particular ticket. operationId: getPinnedConversations parameters: - name: types in: query description: The type of pins to fetch as a comma separated list. The allowed values are @comments@ and @threads@ required: false style: simple explode: true schema: type: - 'null' - array description: The type of pins to fetch as a comma separated list. The allowed values are @comments@ and @threads@ items: type: - string - 'null' enum: - comments - threads maxLength: 100 minLength: 0 uniqueItems: true - $ref: '#/components/parameters/ticketId' - $ref: ./Common.json#/components/parameters/orgId responses: '422': $ref: ./Common.json#/components/responses/invalidDataErrorResponse '200': $ref: '#/components/responses/getPinnedConversationsResponse' security: - iam-oauth2-schema: - Desk.tickets.READ x-audience: - external-public post: tags: - PinnedConversation summary: Create a pin on the ticket description: This API creates a new pin on the ticket. operationId: pinConversationOnTicket parameters: - $ref: '#/components/parameters/ticketId' - $ref: ./Common.json#/components/parameters/orgId requestBody: $ref: '#/components/requestBodies/pinAConversationRequest' responses: '422': $ref: ./Common.json#/components/responses/invalidDataErrorResponse '200': $ref: '#/components/responses/pinAConversationResponse' security: - iam-oauth2-schema: - Desk.tickets.UPDATE x-audience: - external-public components: schemas: unPinConversationData: type: - object - 'null' additionalProperties: false properties: id: type: - string - 'null' - integer format: int64 pattern: ([0-9]+) success: type: - boolean - 'null' errors: type: - 'null' - string required: - errors - id - success requestBodies: unPinConversationRequest: description: unPinConversationRequest Payload template definitions content: application/json: schema: type: - 'null' - object additionalProperties: false properties: ids: $ref: ./PinnedConversation.json#/components/schemas/long_array required: - ids examples: Valid requestBody Definitions: value: ids: - 1235000000013295 - 1235000000013345 pinAConversationRequest: description: pinConversationRequest Payload template definitions content: application/json: schema: type: - 'null' - object additionalProperties: false properties: isPublic: type: - boolean - 'null' entityId: type: - string - 'null' - integer format: int64 pattern: ([0-9]+) type: type: - string - 'null' enum: - COMMENTS - THREADS maxLength: 100 minLength: 0 required: - entityId - type examples: Valid requestBody Definitions: value: isPublic: false entityId: '1235000000013468' type: comments parameters: ticketId: name: ticketId in: path required: true style: simple explode: false schema: type: - string - 'null' - integer format: int64 pattern: ([0-9]+) responses: unPinAConversationResponse: description: getUnPinnedConversationsResponse template definitions content: application/json: schema: type: - 'null' - object additionalProperties: false properties: results: type: - 'null' - array items: $ref: '#/components/schemas/unPinConversationData' getPinnedConversationsResponse: description: getPinnedConversationsResponse template definitions content: application/json: schema: allOf: - type: object properties: data: type: array items: type: object properties: plainText: type: - string - 'null' maxLength: 16777215 minLength: 0 pinnedBy: type: - 'null' - object additionalProperties: false maxProperties: 5 minProperties: 5 properties: photoURL: type: - string - 'null' maxLength: 200 minLength: 0 pattern: (^(ht|f)tp(s?)\://[-.\w]*(/?)([a-zA-Z0-9\-\.\?\,\:\'/\\+=&%\$#_@]*)?$) firstName: type: - string - 'null' maxLength: 50 minLength: 0 lastName: type: - string - 'null' maxLength: 50 minLength: 0 id: type: - string - 'null' - integer format: int64 pattern: ([0-9]+) email: type: - string - 'null' maxLength: 100 minLength: 0 pattern: ^[a-zA-Z0-9\_]([a-zA-Z0-9\_\+\-\.\'&]*)@(?=.{4,256}$)(([a-zA-Z0-9]+)(([\-\_]*[a-zA-Z0-9])*)[\.])+[a-zA-Z]{2,22}$ required: - email - firstName - id - lastName - photoURL mention: type: - 'null' - array items: oneOf: - type: - 'null' - object additionalProperties: false maxProperties: 8 minProperties: 8 properties: photoURL: type: - string - 'null' maxLength: 200 minLength: 0 pattern: (^(ht|f)tp(s?)\://[-.\w]*(/?)([a-zA-Z0-9\-\.\?\,\:\'/\\+=&%\$#_@]*)?$) offSet: type: - string - 'null' - integer format: int32 pattern: ([0-9]+) name: type: - string - 'null' maxLength: 100 minLength: 0 length: type: - string - 'null' - integer format: int32 pattern: ([0-9]+) id: type: - string - 'null' - integer format: int64 pattern: ([0-9]+) type: type: - string - 'null' enum: - END_USER - AGENT - TEAM - TICKET - ACTIVITY maxLength: 100 minLength: 0 email: type: - string - 'null' maxLength: 100 minLength: 0 pattern: ^[a-zA-Z0-9\_]([a-zA-Z0-9\_\+\-\.\'&]*)@(?=.{4,256}$)(([a-zA-Z0-9]+)(([\-\_]*[a-zA-Z0-9])*)[\.])+[a-zA-Z]{2,22}$ zuid: type: - string - 'null' - integer format: int32 pattern: ([0-9]+) required: - email - id - length - name - offSet - photoURL - type - zuid - type: - 'null' - object additionalProperties: false maxProperties: 5 minProperties: 5 properties: offSet: type: - string - 'null' - integer format: int32 pattern: ([0-9]+) length: type: - string - 'null' - integer format: int32 pattern: ([0-9]+) name: type: - string - 'null' maxLength: 100 minLength: 0 id: type: - string - 'null' - integer format: int64 pattern: ([0-9]+) type: type: - string - 'null' enum: - END_USER - AGENT - TEAM - TICKET - ACTIVITY maxLength: 100 minLength: 0 required: - id - length - name - offSet - type - type: - 'null' - object additionalProperties: false maxProperties: 7 minProperties: 7 properties: offSet: type: - string - 'null' - integer format: int32 pattern: ([0-9]+) departmentId: type: - string - 'null' - integer format: int64 pattern: ([0-9]+) entityNumber: type: - string - 'null' - integer format: int32 pattern: ([0-9]+) length: type: - string - 'null' - integer format: int32 pattern: ([0-9]+) name: type: - string - 'null' maxLength: 100 minLength: 0 id: type: - string - 'null' - integer format: int64 pattern: ([0-9]+) type: type: - string - 'null' enum: - END_USER - AGENT - TEAM - TICKET - ACTIVITY maxLength: 100 minLength: 0 required: - departmentId - entityNumber - id - length - name - offSet - type uniqueItems: false - type: - 'null' - object additionalProperties: false properties: data: $ref: ./PinnedConversation.json#/components/schemas/data required: - data examples: Valid responses Definitions: value: data: - pinnedTime: '2024-05-07T05:24:34Z' isPublic: true id: '1235000000013295' pinnedBy: firstName: Nirmal lastName: Kumar photoURL: https://desk.zoho.com/api/v1/agents/1235000000010078/photo?orgId=61815772 id: '1235000000010078' email: nirmalkumar@zylker.com type: comments pinnedEntity: modifiedTime: '2024-05-06T13:05:50.000Z' attachments: [] encodedContent: '<div style="font-size: 13px; font-family: Arial, Helvetica, sans-serif"><div>zsu[@user:76260187]zsu a comment.<br></div></div>' commentedTime: '2024-05-06T13:05:50.000Z' isPublic: false id: '1235000000013468' contentType: html content: '