Skip to content

Update Work Routine

PATCH
/work/routines/{routine_id}

Change one routine.

Only somebody who can read the routine’s delivery conversation may change it, and re-pointing deliveryConversationId is a second grant: the NEW conversation must be readable too. Omitted fields keep their stored value.

Authorizations

Parameters

Path Parameters

routine_id
required

Routine id

string format: uuid

Routine id

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Changes to one routine. Omitted fields keep their stored value.

object
agentId
Any of:
string
deliveryConversationId
Any of:
string
enabled
Any of:
boolean
eventPolicy
Any of:
object
key
additional properties
any
instruction
Any of:
string
localTime
Any of:
string
timezone
Any of:
string
title
Any of:
string
trigger
Any of:
object
key
additional properties
any
triggerKind
Any of:
string
weekdays
Any of:
Array<integer>

Responses

200

Successful Response

object
data
required

One routine, as the create and update operations return it.

object
routine
required

The routine as stored after the write

object
agentId
Any of:
string
deliveryConversationId
Any of:
string
enabled
Any of:
boolean
id
Any of:
string
instruction
Any of:
string
lastRunAt
Any of:
string
lastStatus
Any of:
string
localTime
Any of:
string
timezone
Any of:
string
title
Any of:
string
triggerKind
Any of:
string
weekdays
Any of:
Array<integer>
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string