/api/v1/things/{id}/starter-schedules
POST
/api/v1/things/{id}/starter-schedules
const url = 'https://example.com/api/v1/things/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/starter-schedules';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"keys":["oil_change"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/things/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/starter-schedules \ --header 'Content-Type: application/json' \ --data '{ "keys": [ "oil_change" ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
keys
Array<string>
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
schedules
required
Array<object>
object
id
required
string format: uuid
locationId
required
string format: uuid
subject
required
object
type
required
string
id
required
string format: uuid
name
required
string
path
required
string
shortCode
string | null
name
required
string
everyMonths
required
number | null
everyUnits
required
string | null
meter
required
dueOn
required
string | null
leadDays
required
number
leadUnits
required
string | null
anchorOn
required
string
anchorValue
required
string | null
next
required
object
dueOn
required
string | null
dueValue
required
string | null
state
required
string
basis
required
string
snoozedUntil
required
string | null
snoozedUntilValue
required
string | null
skipNext
required
boolean
active
required
boolean
rowVersion
required
number
undo
object
eventId
required
string format: uuid
until
required
string
Example
{ "schedules": [ { "subject": { "type": "thing" }, "next": { "state": "upcoming", "basis": "months" } } ]}