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

# Update the Csat setting for a team



## OpenAPI

````yaml patch /v1/csat/team/{teamUid}/update
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/csat/team/{teamUid}/update:
    patch:
      tags:
        - CSAT
      summary: Update the Csat setting for a team
      parameters:
        - name: teamUid
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCsatSettingsDto'
      responses:
        '200':
          description: Success - CSAT settings updated successfully
          content:
            application/json:
              example:
                data:
                  ok: true
                  data:
                    id: 123e4567-e89b-12d3-a456-426614174000
                    team:
                      id: '12345678910'
                    organization:
                      id: '98765432110'
                    isEnabled: true
                    cooldownPeriodDays: 21
                    userCooldownPeriodDays: 60
                    emailConfigId: updated-email-config-456
                    closedStatusIds:
                      - '1'
                      - '2'
                      - '3'
                      - '4'
                    rules: []
                    createdAt: '2023-01-01T00:00:00.000Z'
                    updatedAt: '2023-01-02T10:15:30.000Z'
                status: true
                message: Csat Setting updated successfully
                timestamp: '2025-07-15T11:38:09.817Z'
        '400':
          description: Bad Request - Invalid input data
          content:
            application/json:
              example:
                statusCode: 400
                message: Validation failed
                error: Bad Request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                statusCode: 401
                message: Unauthorized
                error: Unauthorized
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                statusCode: 403
                message: Forbidden
                error: Forbidden
        '404':
          description: Team not found
          content:
            application/json:
              example:
                statusCode: 404
                message: Team not found
                error: Not Found
        '429':
          description: Too many requests!
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                statusCode: 500
                message: Internal Server Error
                error: Internal Server Error
        '503':
          description: Service Unavailable
          content:
            application/json:
              example:
                statusCode: 503
                message: Service Unavailable
                error: Service Unavailable
components:
  schemas:
    UpdateCsatSettingsDto:
      type: object
      properties:
        cooldownPeriodDays:
          type: number
          description: Cooldown period in days
          example: 14
        emailConfigId:
          type: string
          description: The Email Config Id associated with the CSAT settings
        userCooldownPeriodDays:
          type: number
          description: The user cooldown period in days
          example: 14
        closedStatusIds:
          description: The closed statuses associated with the CSAT settings
          type: array
          items:
            type: string
      required:
        - cooldownPeriodDays
        - emailConfigId
        - userCooldownPeriodDays
        - closedStatusIds
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````