# Change a campaign's auto retry (/docs/api-reference/bulk-calls/updateBulkCallAutoRetry)

> Change auto retry after the campaign was created, with the same rules as createBulkCall's retry_config. Send either retry_steps, or retry_limit with auto_retry_schedule, retry_schedule_days and retry_schedule_hours. The change is logged in the campaign's history.

**PUT** `/calls/bulk_call/{bulk_call_id}/auto_retry`

Change auto retry after the campaign was created, with the same rules as
`createBulkCall`'s `retry_config`. Send either `retry_steps`, or
`retry_limit` with `auto_retry_schedule`, `retry_schedule_days` and
`retry_schedule_hours`. The change is logged in the campaign's history.

```yaml
operationId: updateBulkCallAutoRetry
parameters:
  - in: path
    name: bulk_call_id
    required: true
    schema:
      type: integer
    description: Id of the bulk call campaign.
requestBody:
  required: true
  content:
    application/json:
      schema:
        type: object
        required:
          - auto_retry
        properties:
          user_id:
            type: integer
            description: |
              Reseller keys only: act as one of your clients by its user id. Omit
              it to act on your own account.
              [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
            example: 1234
          auto_retry:
            type: boolean
            description: Turn auto retry on or off.
          retry_limit:
            type: integer
            minimum: 0
            maximum: 10
            description: How many times to retry a contact. Needed without `retry_steps`.
          auto_retry_schedule:
            type: string
            enum:
              - immediately
              - next_day
              - scheduled_time
            description: When a retry dials. Needed without `retry_steps`.
          retry_schedule_days:
            type: integer
            minimum: 0
            description: With `scheduled_time`, days to wait. Needed without `retry_steps`.
          retry_schedule_hours:
            type: integer
            minimum: 0
            description: With `scheduled_time`, hours to wait. Needed without `retry_steps`.
          retry_steps:
            type: array
            description: One entry per retry, each with its own wait. Replaces `retry_limit` and the schedule.
            items:
              type: object
              properties:
                delay:
                  type: integer
                unit:
                  type: string
                  enum:
                    - minutes
                    - hours
                    - days
          retry_on:
            type: array
            description: Which call outcomes auto retry calls again.
            items:
              type: string
              enum:
                - no-answer
                - busy
                - failed
                - cancelled
                - voicemail_detected
          retry_unanswered:
            type: string
            enum:
              - 'off'
              - no_reply
              - no_reply_or_short
              - model
            description: Which connected calls with no conversation are also retried. `off` retries none.
          retry_unanswered_max_seconds:
            type: integer
            description: >-
              Under `no_reply_or_short`, a call this long or shorter (in seconds) counts as
              unanswered.
      example:
        auto_retry: true
        retry_limit: 2
        auto_retry_schedule: scheduled_time
        retry_schedule_days: 0
        retry_schedule_hours: 3
responses:
  '200':
    description: The auto retry settings as saved.
    content:
      application/json:
        schema:
          type: object
          properties:
            success:
              type: boolean
            auto_retry:
              type: object
              additionalProperties: true
  '400':
    description: A setting is missing or not allowed. `error_description` says which.
  '403':
    description: The API key's user cannot change bulk calls.
  '404':
    description: No such campaign in your organization.
```

**curl**

```bash
curl -X PUT "https://omnidim.io/api/v1/calls/bulk_call/{bulk_call_id}/auto_retry" \
  -H "Authorization: Bearer $OMNIDIM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "auto_retry": true,
  "retry_limit": 2,
  "auto_retry_schedule": "scheduled_time",
  "retry_schedule_days": 0,
  "retry_schedule_hours": 3
}'
```