Skip to content

Change when a tip is posted to the acting user's inbox

PUT
/api/v1/hints/schedule
curl --request PUT \
--url http://localhost:11044/api/v1/hints/schedule \
--header 'Content-Type: application/json' \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \
--data '{ "frequency": "NEVER", "hour": 1 }'

Takes effect at once: the job is rescheduled before this returns. NEVER removes it.

The whole schedule, replacing the one stored in the signed-in user’s world. frequency is NEVER, DAILY, WEEKDAYS (Monday to Friday) or WEEKLY (Mondays), default WEEKDAYS; NEVER removes the job. hour is the hour, 0-23 in the user’s own zone, a tip is posted at, default 9. A field left out takes its default, not the stored value; the record of tips already posted is kept

Media typeapplication/json

When a tip is posted to the acting user’s inbox, as a frequency preset and an hour; the body of PUT /hints/schedule

object
frequency
required

How often a tip is posted; NEVER turns tips off. Defaults to WEEKDAYS when absent

string
Allowed values: NEVER DAILY WEEKDAYS WEEKLY
hour
required

Hour of day, 0-23, in the user’s own time zone. Defaults to 9 when absent; outside 0-23 is a 400

integer format: int32

The schedule now in force

Media type*/*

The acting user’s tip schedule and the cron expression it runs on; answered by GET and PUT /hints/schedule

object
cron

Spring six-field cron expression the schedule runs on (second minute hour day month day-of-week), read in the user’s own time zone; null when frequency is NEVER

string
frequency
required

How often a tip is posted to the inbox; NEVER means tips are off

string
Allowed values: NEVER DAILY WEEKDAYS WEEKLY
hour
required

Hour of day (0-23) the tip is posted, in the user’s own time zone

integer format: int32

Unknown frequency, or an hour outside 0-23

Not authenticated