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

# Update Template Settings

> Partial update of the template's name, description, settings and access. Send only the keys you want to change; every key is optional. Steps and sections are not changed here: use **Save Template** (PUT).

Requires **Manage Templates** (`CAN_MANAGE_CHECKLIST`) or **Template Super Admin** (`CHECKLIST_SUPER_ADMIN`). The key acts as its user (the key's default user, or `x-client-user`), so that user's role and template access apply.

Things to know:
- **`templateContext` is cleared when you leave it out.** The body defaults it to an empty string. If the template uses AI context, send the current value on every PATCH.
- `access` and `submissionAccess` replace the whole list. `[]` removes every row.
- An empty `name` or `description` is ignored, not saved.
- PATCH does not publish or unpublish. Publishing is done in the app.
- Unknown keys are rejected with `422`.

The response is the updated template, in the same shape as **Get Template**.



## OpenAPI

````yaml PATCH /api/v1/ops/workspaces/{workspaceId}/checklists/{templateId}
openapi: 3.1.0
info:
  title: Xenia Team API - Update Template Settings
  version: 1.0.0
  description: >-
    Changes a template's name, description, settings and access lists. Steps and
    sections are not touched.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/ops/workspaces/{workspaceId}/checklists/{templateId}:
    patch:
      tags:
        - Templates
      summary: Update Template Settings
      description: >-
        Partial update of the template's name, description, settings and access.
        Send only the keys you want to change; every key is optional. Steps and
        sections are not changed here: use **Save Template** (PUT).


        Requires **Manage Templates** (`CAN_MANAGE_CHECKLIST`) or **Template
        Super Admin** (`CHECKLIST_SUPER_ADMIN`). The key acts as its user (the
        key's default user, or `x-client-user`), so that user's role and
        template access apply.


        Things to know:

        - **`templateContext` is cleared when you leave it out.** The body
        defaults it to an empty string. If the template uses AI context, send
        the current value on every PATCH.

        - `access` and `submissionAccess` replace the whole list. `[]` removes
        every row.

        - An empty `name` or `description` is ignored, not saved.

        - PATCH does not publish or unpublish. Publishing is done in the app.

        - Unknown keys are rejected with `422`.


        The response is the updated template, in the same shape as **Get
        Template**.
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: >-
            UUID of the workspace. Must be the workspace the API key belongs to.
            Only this workspace-in-path form is open to API keys.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
        - name: templateId
          in: path
          required: true
          description: >-
            UUID of the template. Any value that is not UUID-shaped returns `403
            Forbidden: API key not authorized for this route`.
          schema:
            type: string
            format: uuid
            example: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                name:
                  type: string
                  description: Template name.
                description:
                  type:
                    - string
                    - 'null'
                icon:
                  description: 'Icon object, e.g. `{"icon": "Default", "color": "#FFA681"}`.'
                attachments:
                  description: Array of attachment URLs or keys.
                logo:
                  type: string
                  description: Logo URL. Empty string clears it.
                isShowTimestamp:
                  type:
                    - boolean
                    - 'null'
                  description: Show timestamps on step answers.
                isScoring:
                  type:
                    - boolean
                    - 'null'
                  description: >-
                    Turn scoring on. Needs the Weighted Scoring feature,
                    otherwise `403`.
                isAutoFailEnabled:
                  type:
                    - boolean
                    - 'null'
                isShowScoreInProgress:
                  type:
                    - boolean
                    - 'null'
                isShowScoreInSteps:
                  type:
                    - boolean
                    - 'null'
                isShowInstructions:
                  type:
                    - boolean
                    - 'null'
                isShowCompletionRate:
                  type:
                    - boolean
                    - 'null'
                isShowCorrectiveActionInSteps:
                  type:
                    - boolean
                    - 'null'
                isHideConditionalSteps:
                  type:
                    - boolean
                    - 'null'
                isConfirmBeforeSubmit:
                  type:
                    - boolean
                    - 'null'
                collapseInstructions:
                  type:
                    - boolean
                    - 'null'
                isReportInLocationTimezone:
                  type:
                    - boolean
                    - 'null'
                isFlagResponsesInRealTime:
                  type:
                    - boolean
                    - 'null'
                isAllowOnlyBluetoothTemperatureResponses:
                  type:
                    - boolean
                    - 'null'
                temperatureEntryMode:
                  type:
                    - string
                    - 'null'
                  enum:
                    - both
                    - bluetoothOnly
                    - perQuestion
                    - null
                allowTemperatureNA:
                  type:
                    - boolean
                    - 'null'
                defaultInProgressView:
                  type: string
                  enum:
                    - list
                    - table
                    - sectionsAsRows
                isOtherNotesEnabled:
                  type:
                    - boolean
                    - 'null'
                isSingleEmailThread:
                  type:
                    - boolean
                    - 'null'
                SubmissionType:
                  type:
                    - string
                    - 'null'
                  enum:
                    - BOTH
                    - ADHOC
                    - TASK
                    - null
                  description: >-
                    Whether the template can be used ad hoc, only in tasks, or
                    both.
                enableAiSummary:
                  type:
                    - boolean
                    - 'null'
                pdfAiSummary:
                  type:
                    - boolean
                    - 'null'
                emailAiSummary:
                  type:
                    - boolean
                    - 'null'
                isComplianceAgentEnabled:
                  type:
                    - boolean
                    - 'null'
                isGeofenceRequired:
                  type:
                    - boolean
                    - 'null'
                  description: >-
                    Changing it needs `CAN_MANAGE_WORKSPACE_CONFIG` as well,
                    otherwise `403`.
                geofenceMode:
                  type:
                    - string
                    - 'null'
                  enum:
                    - warn
                    - block
                    - null
                  description: >-
                    Changing it needs `CAN_MANAGE_WORKSPACE_CONFIG` as well,
                    otherwise `403`.
                linkedStepsInReports:
                  type:
                    - boolean
                    - 'null'
                templateContext:
                  type:
                    - string
                    - 'null'
                  description: >-
                    AI context for the template. **If you leave it out, it is
                    saved as an empty string**, clearing any existing value.
                    Send the current value on every call if the template uses
                    it.
                reportSectionConfig:
                  type:
                    - string
                    - 'null'
                  enum:
                    - SHOW_ALL
                    - SHOW_ONLY_FLAGGED
                    - SHOW_ONLY_CORRECTIVE
                    - SHOW_FLAGGED_AND_CORRECTIVE
                    - null
                reportSectionIds:
                  type:
                    - array
                    - 'null'
                  items:
                    type: string
                    format: uuid
                  description: >-
                    Section ids to include in reports. `null` or `[]` means all
                    sections.
                enableSubmissionLookback:
                  type:
                    - boolean
                    - 'null'
                lookbackPrompt:
                  type:
                    - string
                    - 'null'
                  maxLength: 2000
                lookbackConfig:
                  type:
                    - object
                    - 'null'
                  properties:
                    showFlaggedFromLastVisit:
                      type: boolean
                    showGoingRightWay:
                      type: boolean
                    showWatchForRepeatIssues:
                      type: boolean
                    showNotesFromLastSubmission:
                      type: boolean
                    summaryLength:
                      type: string
                      enum:
                        - low
                        - medium
                        - high
                isPubliclyAccessible:
                  type: boolean
                isPrivateOnMobile:
                  type: boolean
                isRequestForm:
                  type: boolean
                isQREnable:
                  type: boolean
                  description: >-
                    Turning it on needs the Scan QR Code feature, otherwise
                    `403`.
                isNameAndEmailRequired:
                  type: boolean
                scoreConfig:
                  description: Rating thresholds for scored templates.
                viewByDeductionRange:
                  type:
                    - boolean
                    - 'null'
                sendSubmitterEmail:
                  type: boolean
                sendLocationEmail:
                  type: boolean
                collapseSections:
                  type: boolean
                decimalPlacesForScoring:
                  type:
                    - integer
                    - 'null'
                  enum:
                    - 0
                    - 1
                    - 2
                    - 3
                    - 4
                    - null
                imagesPerRow:
                  type:
                    - integer
                    - 'null'
                  enum:
                    - 2
                    - 4
                    - 6
                    - null
                access:
                  type: array
                  items:
                    type: object
                    required:
                      - groupId
                      - AccessorId
                      - role
                    properties:
                      groupId:
                        type: string
                        format: uuid
                        description: >-
                          Groups rows that the app shows as one line. Generate a
                          UUID (v4); reuse it across rows that belong together.
                      AccessorId:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          A user, team, location or role id (UUID v4). Must be
                          `null` when `isEveryone` is `true`.
                      isEveryone:
                        type: boolean
                        default: false
                        description: '`true` grants the role to everyone in the workspace.'
                      role:
                        type: string
                        enum:
                          - admin
                          - submitter
                  description: >-
                    **Replaces** the template's whole access list (who can use
                    and administer it). `[]` removes every row. Omit to leave
                    access unchanged. Newly added accessors get a push
                    notification.
                submissionAccess:
                  type: array
                  items:
                    type: object
                    required:
                      - groupId
                      - AccessorId
                      - permission
                    properties:
                      groupId:
                        type: string
                        format: uuid
                        description: >-
                          Groups rows that the app shows as one line. Generate a
                          UUID (v4).
                      AccessorId:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          A user, team, location or role id (UUID v4). Must be
                          `null` when `isEveryone` is `true`.
                      isEveryone:
                        type: boolean
                        default: false
                      permission:
                        type: string
                        enum:
                          - CAN_VIEW_ALL_SUBMISSIONS
                          - CAN_VIEW_OWN_AND_LOCATION_SUBMISSIONS
                          - CAN_VIEW_OWN_SUBMISSIONS
                      canEdit:
                        type: boolean
                        default: false
                  description: >-
                    **Replaces** the template's whole submission-visibility
                    list. `[]` removes every row. Omit to leave it unchanged.
                scoringMethodology:
                  type: string
                  enum:
                    - additive
                    - deduction
                  description: >-
                    Cannot change once the template has real submissions
                    (`400`). Duplicate the template instead.
                overallScoreRollup:
                  type: string
                  enum:
                    - totalPoints
                    - sectionAverage
                  description: >-
                    `sectionAverage` only works with the `additive` methodology
                    (`400`).
                scoreDisplayMode:
                  type: string
                  enum:
                    - percentage
                    - points
                    - pointsOutOfPossible
                  description: >-
                    Point-based display only works with the `totalPoints` rollup
                    (`400`).
                emailSubjectFormat:
                  type: string
                  enum:
                    - templateFirst
                    - locationFirst
                  description: >-
                    Only available where the workspace has it enabled; otherwise
                    `400`.
                itemCategories:
                  type: array
                  description: Scoring categories for the template.
                  items:
                    type: object
                    required:
                      - id
                      - name
                    properties:
                      id:
                        type:
                          - string
                          - 'null'
                        format: uuid
                      name:
                        type: string
            example:
              name: Opening Safety Walk (v2)
              description: Daily walk-through before the store opens
              isConfirmBeforeSubmit: true
              SubmissionType: BOTH
              templateContext: ''
      responses:
        '200':
          description: >-
            Template updated. The example is abridged: the response carries
            every template setting (all the PATCH keys below, plus internal ids
            such as `nameSnippetId`), and each step carries every step column.
          content:
            application/json:
              example:
                data:
                  id: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                  name: Opening Safety Walk (v2)
                  description: Daily walk-through before the store opens
                  icon:
                    icon: Default
                    color: '#FFA681'
                  image: null
                  attachments: []
                  CreatedInWorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                  isPublic: false
                  isPublished: true
                  publishedAt: '2026-11-20T14:05:40.102Z'
                  isScoring: false
                  isShowTimestamp: false
                  isConfirmBeforeSubmit: true
                  SubmissionType: BOTH
                  parentId: null
                  itemsCount: 3
                  totalLogsCount: 42
                  isActive: true
                  enableAiSummary: false
                  pdfAiSummary: false
                  emailAiSummary: false
                  templateContext: ''
                  isGeofenceRequired: false
                  geofenceMode: null
                  scoringMethodology: additive
                  overallScoreRollup: totalPoints
                  scoreDisplayMode: percentage
                  CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                  UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                  createdAt: '2026-11-20T14:02:11.418Z'
                  updatedAt: '2026-11-24T10:12:44.913Z'
                  WorkspaceChecklist:
                    id: 6d5c4b3a-2f1e-4d0c-9b8a-7f6e5d4c3b29
                    WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                    ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                    isEditable: true
                    logsCount: 42
                    isPubliclyAccessible: false
                    isPrivateOnMobile: false
                    isRequestForm: false
                    isNameAndEmailRequired: false
                    isQREnable: false
                    archivedAt: null
                    FolderId: 5e8a7c21-3b94-4d1f-8c6e-0a2b9f4d7e13
                    scoreConfig: null
                    viewByDeductionRange: true
                    sendSubmitterEmail: false
                    sendLocationEmail: false
                    collapseSections: false
                  Creator:
                    id: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                    firstName: Dana
                    lastName: Reyes
                  ChecklistItems:
                    - id: c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e51
                      type: passFail
                      description: Fire exits are clear and unobstructed
                      unit: null
                      order: 0
                      score: null
                      options:
                        - type: success
                          label: Pass
                          value: pass
                        - type: error
                          label: Fail
                          value: fail
                        - type: info
                          label: N/A
                          value: na
                      attachments: []
                      isImageOrNoteRequired: false
                      required: true
                      info: null
                      ParentId: null
                      RelatedAutomationId: null
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      ChecklistSectionId: null
                      ItemCategoryId: null
                      isActive: true
                      enforceRealTimeLocation: false
                      CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      createdAt: '2026-11-20T14:02:11.418Z'
                      updatedAt: '2026-11-20T14:02:11.418Z'
                  ChecklistSections:
                    - id: a2c4e6f8-1b3d-4f5a-8c7e-9d0b2a4c6e81
                      title: Cold storage
                      description: null
                      order: 1
                      isActive: true
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      ParentId: null
                      ParentSectionId: null
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      RelatedAutomationId: null
                      repeat: null
                      CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      createdAt: '2026-11-20T14:02:11.418Z'
                      updatedAt: '2026-11-20T14:02:11.418Z'
                      ChecklistItems:
                        - id: d2e3f4a5-b6c7-4d8e-9f0a-1b2c3d4e5f62
                          type: temperature
                          description: Walk-in cooler temperature
                          unit: F
                          order: 0
                          score: null
                          options: null
                          attachments: []
                          isImageOrNoteRequired: false
                          required: true
                          info: null
                          ParentId: null
                          RelatedAutomationId: null
                          WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                          ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                          ChecklistSectionId: a2c4e6f8-1b3d-4f5a-8c7e-9d0b2a4c6e81
                          ItemCategoryId: null
                          isActive: true
                          enforceRealTimeLocation: false
                          CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                          UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                          createdAt: '2026-11-20T14:02:11.418Z'
                          updatedAt: '2026-11-20T14:02:11.418Z'
                        - id: e3f4a5b6-c7d8-4e9f-8a1b-2c3d4e5f6a73
                          type: takePhoto
                          description: Photo of the cooler display
                          unit: null
                          order: 1
                          score: null
                          options: null
                          attachments: []
                          isImageOrNoteRequired: false
                          required: false
                          info: null
                          ParentId: null
                          RelatedAutomationId: null
                          WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                          ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                          ChecklistSectionId: a2c4e6f8-1b3d-4f5a-8c7e-9d0b2a4c6e81
                          ItemCategoryId: null
                          isActive: true
                          enforceRealTimeLocation: false
                          CreatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                          UpdatedBy: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                          createdAt: '2026-11-20T14:02:11.418Z'
                          updatedAt: '2026-11-20T14:02:11.418Z'
                  ChecklistAccess:
                    - id: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d41
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      AccessorId: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      isEveryone: false
                      groupId: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c65
                      role: admin
                    - id: 1c2d3e4f-5a6b-4c7d-9e8f-0a1b2c3d4e52
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      AccessorId: null
                      isEveryone: true
                      groupId: 2d3e4f5a-6b7c-4d8e-8f9a-1b2c3d4e5f63
                      role: submitter
                  SubmissionAccess:
                    - id: 3e4f5a6b-7c8d-4e9f-9a0b-2c3d4e5f6a74
                      ChecklistId: 3f1c9a52-8e4b-4d27-9b6a-2a7e5c1d0f84
                      WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                      groupId: 4f5a6b7c-8d9e-4f0a-8b1c-3d4e5f6a7b85
                      AccessorId: 37d98201-9f3a-41fd-89b3-3be457c3f7ba
                      isEveryone: false
                      canEdit: false
                      permission: CAN_VIEW_ALL_SUBMISSIONS
                  itemCategories: []
                  templateAccess:
                    isAdmin: true
                    isSubmitter: true
                  logsCount: 42
                  isPubliclyAccessible: false
                  isNameAndEmailRequired: false
                  isQREnable: false
                  scoreConfig: null
                  viewByDeductionRange: true
                  sendSubmitterEmail: false
                  sendLocationEmail: false
                  collapseSections: false
                  canChangeScoringMethodology: false
                  scoringMethodologyLockReason: >-
                    Can't change scoring methodology — 42 submissions exist.
                    Duplicate the template instead.
                meta: {}
        '400':
          description: >-
            Bad Request - the workspace's trial or subscription has ended. Also
            returned when a scoring combination is not allowed (for example
            `Cannot switch methodology — 42 submissions exist for this template.
            Duplicate template instead.`), or `emailSubjectFormat` is not
            enabled for the workspace.
        '401':
          description: >-
            Unauthorized - `Invalid client credentials`, or `Client does not
            belong to this workspace` when `workspaceId` is not the key's
            workspace.
        '403':
          description: >-
            Forbidden - `API key not authorized for this route` (path is not the
            workspace-in-path form, or `templateId` is not a UUID), or the key's
            user lacks the permission: `You don't have permission "Can manage
            checklist checklist super admin".` Also returned when the template
            is not editable in this workspace (`Your workspace does not have
            permission to edit this template!`, for example a template shared
            from another workspace), when it is a brand template shared into
            this franchisee workspace, when the user may only reorder the
            template, when changing geofencing without
            `CAN_MANAGE_WORKSPACE_CONFIG`, or when turning on `isScoring` /
            `isQREnable` without that feature.
        '404':
          description: >-
            Not Found - `Checklist not found.` The template does not exist in
            this workspace.
          content:
            application/json:
              example:
                error:
                  message: Checklist not found.
                  meta: {}
        '422':
          description: >-
            Unprocessable Entity - the body failed validation, for example an
            unknown key or a value outside its enum.
          content:
            application/json:
              example:
                error:
                  error: 'ValidationError: "isPublished" is not allowed'
                  message: '"isPublished" is not allowed'
                  meta: {}
        '500':
          description: Internal Server Error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.