Update a planning

Update a planning by id

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Resource unique identifier

Body Params

Planning properties

days
object

List of days with sending hours to apply. Each day is an array that contains a list of slot. Each slot is an array of two cells with offset 0 the hour at which the slot begins and offset 1 the hour at which the slot ends

daysOff
array

List of day during which no sending should occur

daysOff
string

User given description

string

planning name

string

Timezone

Responses
200

Planning successfully updated

invalid_day: A day is badly formatted
  • invalid_day_off: A day off is invalid
  • planning_used: Only the name and the description of the planning can be
    edited when the planning is in use (at least one contact is in "active" or "added" state in a sequence in which the planning is used)
  • scheduling_hours: Inconsistency between new planning scheduling hours and
    at least one step of one sequence in which the planning is used. When it happens, the data property of the UnprocessabeError will contain a campaigns property that is an array of object formatted like { name, _id }
  • Language
    URL
    LoadingLoading…
    Response
    Click Try It! to start a request and see the response here! Or choose an example:
    application/json