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

# Set ask every time

> Turns **Ask every time** on or off for one saved decision. With `askEveryTime: false` the agent applies the saved recovery automatically the next time the same error comes back; with `askEveryTime: true` a person is asked every time and offered the saved recovery. Workspace owners and members can call it; viewers get `403`. The change is logged against the user who owns the API key.



## OpenAPI

````yaml workflow-api/workflow-api.yaml post /saved-decisions/{id}/ask-every-time
openapi: 3.0.0
info:
  title: Workflow API
  version: 1.0.0
  description: API for managing workflows and their metadata
servers:
  - url: https://api.cloudcruise.com
    description: CloudCruise Platform Production API Server
security:
  - AuthScheme: []
paths:
  /saved-decisions/{id}/ask-every-time:
    post:
      summary: Set ask every time
      description: >-
        Turns **Ask every time** on or off for one saved decision. With
        `askEveryTime: false` the agent applies the saved recovery automatically
        the next time the same error comes back; with `askEveryTime: true` a
        person is asked every time and offered the saved recovery. Workspace
        owners and members can call it; viewers get `403`. The change is logged
        against the user who owns the API key.
      operationId: setSavedDecisionAskEveryTime
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The saved decision's `id`
        - name: cc-key
          in: header
          required: false
          schema:
            type: string
          description: CloudCruise API key for authentication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - askEveryTime
              properties:
                askEveryTime:
                  type: boolean
                  description: >-
                    `true` to ask a person every time, `false` to apply the
                    saved recovery automatically
                updatedAt:
                  type: string
                  maxLength: 64
                  description: >-
                    The `updatedAt` you last saw; the call returns `409` if the
                    saved decision changed since
            example:
              askEveryTime: false
              updatedAt: '2026-11-14T10:32:05.120Z'
      responses:
        '201':
          description: The updated saved decision
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFingerprint'
        '400':
          description: The body is missing `askEveryTime` or a field is invalid
        '401':
          description: >-
            Unauthorized - Invalid or missing authentication, or the API key has
            no user to record the change against
        '403':
          description: The caller is a viewer of the workspace
        '404':
          description: Saved decision not found
        '409':
          description: >-
            The saved decision changed since `updatedAt`, or has no recovery to
            apply automatically
        '503':
          description: The change could not be logged, so it was not saved; try again
components:
  schemas:
    ErrorFingerprint:
      type: object
      description: A saved decision for an error the recovery agent has seen before.
      properties:
        id:
          type: string
        workflowId:
          type: string
        nodeId:
          type: string
          nullable: true
        nodeHash:
          type: string
          description: Identifies the version of the node; an edited node gets a new hash
        errorMsg:
          type: string
          description: >-
            The error message with numbers, quoted text and run input values
            normalized out
        errorVariant:
          type: integer
          description: Which variant of this error on this node, starting at 1
        errorVariantDescription:
          type: string
          nullable: true
          description: A short description of the situation this variant covers
        errorType:
          type: string
        recovery:
          type: string
          nullable: true
          description: The instruction the agent follows when the error comes back
        alwaysAsk:
          type: boolean
          description: >-
            `true`: a person is asked every time and offered the saved recovery.
            `false`: the saved recovery is applied automatically
        approvedAt:
          type: string
          nullable: true
          description: >-
            When the saved decision started applying automatically; null while
            it asks every time
        used:
          type: integer
        lastUsedAt:
          type: string
          nullable: true
        updatedAt:
          type: string
          nullable: true
  securitySchemes:
    AuthScheme:
      type: apiKey
      name: cc-key
      in: header
      description: >-
        API key-based authentication. Provide your CloudCruise API key in the
        cc-key header.

````

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