---
title: "POST /v2/campaigns/{id}/communication-time"
method: POST
path: "/v2/campaigns/{id}/communication-time"
---

# POST /v2/campaigns/{id}/communication-time

`POST /v2/campaigns/{id}/communication-time`

Updates the communication time config for a campaign. This API is idempotent.

## Path parameters

- `id` string, required — Identifier representing a Campaign

## Request body

- object
  - `communicationTimeConfig` object, required — Campaign communication time config
    - `localTimeZoneConfig` LocalTimeZoneConfig — Local time zone config
      - `defaultTimeZone` string — Time Zone Id in the IANA format
      - `localTimeZoneDetection` LocalTimeZoneDetectionType[] — Local TimeZone Detection method list
      - `localTimeZoneDetectionScope` 'PRIMARY_ONLY' | 'ALL_AVAILABLE' — Local TimeZone Detection scope.
    - `telephony` TimeWindow — Time window config
      - `openHours` OpenHours, required — Open Hours config
        - `dailyHours` DailyHours — Daily Hours map
      - `restrictedPeriods` RestrictedPeriods — Restricted period config
        - `restrictedPeriodList` RestrictedPeriod[] — List of restricted period
          - `name` string — The name of a restricted period.
          - `startDate` string, required — Date in ISO 8601 format, e.g. 2024-01-01
          - `endDate` string, required — Date in ISO 8601 format, e.g. 2024-01-01
    - `sms` TimeWindow — Time window config
      - `openHours` OpenHours, required — Open Hours config
        - `dailyHours` DailyHours — Daily Hours map
      - `restrictedPeriods` RestrictedPeriods — Restricted period config
        - `restrictedPeriodList` RestrictedPeriod[] — List of restricted period
          - `name` string — The name of a restricted period.
          - `startDate` string, required — Date in ISO 8601 format, e.g. 2024-01-01
          - `endDate` string, required — Date in ISO 8601 format, e.g. 2024-01-01
    - `email` TimeWindow — Time window config
      - `openHours` OpenHours, required — Open Hours config
        - `dailyHours` DailyHours — Daily Hours map
      - `restrictedPeriods` RestrictedPeriods — Restricted period config
        - `restrictedPeriodList` RestrictedPeriod[] — List of restricted period
          - `name` string — The name of a restricted period.
          - `startDate` string, required — Date in ISO 8601 format, e.g. 2024-01-01
          - `endDate` string, required — Date in ISO 8601 format, e.g. 2024-01-01
    - `whatsApp` TimeWindow — Time window config
      - `openHours` OpenHours, required — Open Hours config
        - `dailyHours` DailyHours — Daily Hours map
      - `restrictedPeriods` RestrictedPeriods — Restricted period config
        - `restrictedPeriodList` RestrictedPeriod[] — List of restricted period
          - `name` string — The name of a restricted period.
          - `startDate` string, required — Date in ISO 8601 format, e.g. 2024-01-01
          - `endDate` string, required — Date in ISO 8601 format, e.g. 2024-01-01

## Response `200`

Success

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — ValidationException
- `483` — ConflictException
- `484` — InvalidCampaignStateException
- `485` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/connectcampaignsv2.md) · [All operations](https://skmtc.net/aws/apis/connectcampaignsv2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/connectcampaignsv2/versions/d9204d79443e/schema)
