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

# Make a task repeat, or change how it repeats (JSON rule or RRULE). An undated task gets its due date anchored on the first matching day from today

> Make a task repeat, or change how it repeats (JSON rule or RRULE). An undated task gets its due date anchored on the first matching day from today.



## OpenAPI

````yaml /api-reference/openapi.json put /crm/tasks/{entryId}/repeat
openapi: 3.1.0
info:
  title: Dench API
  version: 1.0.0
  description: >-
    Versioned Dench workspace API. The operation registry is shared with the
    Dench CLI parity layer, so every CLI command maps to an endpoint here.
servers:
  - url: https://www.dench.com/api/v1
security: []
tags:
  - name: agent-config
    description: Agent Config operations.
  - name: approvals
    description: Approvals operations.
  - name: apps
    description: Apps operations.
  - name: auth
    description: Auth operations.
  - name: billing
    description: Billing operations.
  - name: browser
    description: Browser operations.
  - name: campaigns
    description: Campaigns operations.
  - name: chat
    description: Chat operations.
  - name: crm
    description: Crm operations.
  - name: email
    description: Email operations.
  - name: files
    description: Files operations.
  - name: gateway
    description: Gateway operations.
  - name: lists
    description: Lists operations.
  - name: local
    description: Local operations.
  - name: meetings
    description: Meetings operations.
  - name: members
    description: Members operations.
  - name: memory
    description: Memory operations.
  - name: meta
    description: Meta operations.
  - name: notifications
    description: Notifications operations.
  - name: routines
    description: Routines operations.
  - name: settings
    description: Settings operations.
  - name: workspace
    description: Workspace operations.
paths:
  /crm/tasks/{entryId}/repeat:
    put:
      tags:
        - crm
      summary: >-
        Make a task repeat, or change how it repeats (JSON rule or RRULE). An
        undated task gets its due date anchored on the first matching day from
        today
      description: >-
        Make a task repeat, or change how it repeats (JSON rule or RRULE). An
        undated task gets its due date anchored on the first matching day from
        today.
      operationId: crm_tasks_repeat_set
      parameters:
        - name: entryId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                rule:
                  description: Structured rule; alternative to `rrule`.
                  oneOf:
                    - type: object
                      properties:
                        freq:
                          type: string
                          const: daily
                        interval:
                          type: integer
                          minimum: 1
                          maximum: 9007199254740991
                      required:
                        - freq
                        - interval
                      additionalProperties: false
                    - type: object
                      properties:
                        freq:
                          type: string
                          const: weekly
                        interval:
                          type: integer
                          minimum: 1
                          maximum: 9007199254740991
                        byWeekday:
                          minItems: 1
                          type: array
                          items:
                            type: string
                            enum:
                              - mo
                              - tu
                              - we
                              - th
                              - fr
                              - sa
                              - su
                      required:
                        - freq
                        - interval
                        - byWeekday
                      additionalProperties: false
                    - type: object
                      properties:
                        freq:
                          type: string
                          const: monthly
                        interval:
                          type: integer
                          minimum: 1
                          maximum: 9007199254740991
                        byMonthDay:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                          description: 1–31, or -1 for the last day of the month.
                        bySetPos:
                          type: object
                          properties:
                            ordinal:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: 1–4, or -1 for the last week.
                            weekday:
                              type: string
                              enum:
                                - mo
                                - tu
                                - we
                                - th
                                - fr
                                - sa
                                - su
                          required:
                            - ordinal
                            - weekday
                          additionalProperties: false
                      required:
                        - freq
                        - interval
                      additionalProperties: false
                    - type: object
                      properties:
                        freq:
                          type: string
                          const: yearly
                        interval:
                          type: integer
                          minimum: 1
                          maximum: 9007199254740991
                        month:
                          type: integer
                          minimum: 1
                          maximum: 12
                        day:
                          type: integer
                          minimum: 1
                          maximum: 31
                      required:
                        - freq
                        - interval
                        - month
                        - day
                      additionalProperties: false
                rrule:
                  description: >-
                    RFC 5545 subset: FREQ, INTERVAL, BYDAY (ordinal allowed for
                    MONTHLY, e.g. 2TU / -1FR), BYMONTHDAY, BYMONTH, COUNT,
                    UNTIL. Bare FREQ=MONTHLY / YEARLY / WEEKLY take the day from
                    the task's due date.
                  type: string
                trigger:
                  description: >-
                    When the next occurrence is created: after this one is done
                    (default) or on schedule regardless.
                  type: string
                  enum:
                    - after_completion
                    - on_schedule
                ends:
                  anyOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: never
                      required:
                        - kind
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: count
                        count:
                          type: integer
                          minimum: 1
                          maximum: 9007199254740991
                      required:
                        - kind
                        - count
                      additionalProperties: false
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: until
                        dateKey:
                          type: string
                          pattern: ^\d{4}-\d{2}-\d{2}$
                      required:
                        - kind
                        - dateKey
                      additionalProperties: false
                options:
                  type: object
                  properties:
                    skipWeekends:
                      type: boolean
                    keepAssignee:
                      type: boolean
                    copyNotes:
                      type: boolean
                    copySubtasks:
                      type: boolean
                  additionalProperties: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties: {}
                    additionalProperties: {}
                  - type: 'null'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - DenchApiKey: []
        - AgentSession: []
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    NotFound:
      description: Operation or resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: Server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
            - code
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: string
            details: {}
  securitySchemes:
    DenchApiKey:
      type: http
      scheme: bearer
      bearerFormat: DENCH_API_KEY
      description: >-
        Workspace-scoped Dench API key from workspace settings. This is the same
        key used by DENCH_API_KEY in sandboxes.
    AgentSession:
      type: http
      scheme: bearer
      bearerFormat: dch_agent_*
      description: >-
        Agent session token created by `dench signin`. Gateway-backed routes
        exchange this token for the workspace gateway key.

````

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