Orion Intelligence
Undo, accept or reject Orion Intelligence changes
Acts on Orion Intelligence changes from list_intelligence_changes (the `id` of each change): `undo` an applied change, `accept` or `reject` a suggestion, or mark changes `seen`. undo, accept and reject act on the WHOLE decision the id belongs to: one decision can show as several changes (other days, other phases or properties, each with the same decision_id), and all of them are undone, accepted or rejected together.
Check the decision_id of each change before acting. Send change_id (one) or change_ids (several). Each id gets its own result { change_id, ok, status }; one failing does not stop the others (e.g. status expired for a suggestion that is no longer current).
Request parameters
Authorization string requiredYour API key as a bearer token: Bearer os_…. Make one on the API keys page; see Authentication.
actionenum<string> requiredundo | accept | reject | seen
Possible values:
seenundoacceptrejectchange_idstring min length 1max length 128One change: the
idof a change from list_intelligence_changes.change_idsstring[] min items 1max items 200each min length 1each max length 128Several changes:
ids from list_intelligence_changes.
Response parameters
resultsobject[] required
Errors
Every error answers { "error": { "code", "message" } }.
act_on_intelligence_changes