---
title: "Update account calendar strategy"
method: PUT
path: "/v1/accounts/{accountId}/calendar-strategies"
tags: ["Account calendar strategies"]
---

# Update account calendar strategy

`PUT /v1/accounts/{accountId}/calendar-strategies`

## Request

- Base URL: `https://sandbox.pismolabs.io/passport`
- URL: `https://sandbox.pismolabs.io/passport/v1/accounts/{accountId}/calendar-strategies`
- Auth: none declared. Required headers: `x-tenant`

Update an account calendar strategy. After a program calendar strategy is defined using [Create program calendar strategy](https://developers.pismo.io/pismo-docs/reference/createprogramcalendarstrategy), you must use this endpoint to assign the strategy to an account. If you have more than one program calendar strategy defined for a program, you can also use this endpoint to change the strategy assigned to an account.

This endpoint generates a [Balance account changed](https://developers.pismo.io/events/docs/balance-balance-account-change-1) event.

<b>Note:</b> This endpoint cannot be used to update a [fixed due date calendar](https://developers.pismo.io/pismo-docs/docs/fixed-due-date-calendars).

## Path parameters

- `accountId` integer, required

## Headers

- `x-tenant` string, required
- `x-cid` string

## Request body

- AccountCalendarStrategyPutRequestDto
  - `program_calendar_strategy_id` integer, required: Program calendar strategy ID
  - `apply_to_current_cycle` boolean: Apply the strategy to the current cycle (`true`) or don't (`false`)?

## Response `200`

OK

- AccountCalendarStrategyPutResponseDto
  - `program_calendar_strategy_id` integer: Program calendar strategy ID
  - `created_at` string, date-time: Datetime program calendar strategy was created. Format = YYYY-MM-DDTHH:MM:SS:MM.
  - `updated_at` string, date-time: Datetime program calendar strategy was updated. Format = YYYY-MM-DDTHH:MM:SS:MM

## Other responses

- `400`: Bad request
- `500`: Internal server error

---

[API](https://skmtc.dev/pismo/apis/platform-authentication.md) - [All operations](https://skmtc.dev/pismo/apis/platform-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/platform-authentication/revisions/935b62e16de4?raw)
