Magidoc

getApprovalTemplates
Query

List all available approval templates in a workspace. Use this to discover which approval templates can be applied to actions. Templates provide pre-configured approval workflows with stages and approvers that can be reused across multiple actions.

Arguments

#

workspaceId

ID !
Non-null

ID of the workspace to get templates from

searchParams

Optional search parameters to filter templates

first = 20

Maximum number of templates to return

last

Return last N templates

after

Cursor for pagination (return templates after this cursor)

before

Cursor for pagination (return templates before this cursor)

sortField = "name"

Field to sort results by

Response

#

Returns ApprovalTemplateConnection !.

Example

#