Approval Workflows
[Beta] Update Template Approval Workflow
Changed onCreates or replaces the Submit for approval configuration on a template. A template has at most one configuration; this operation always writes the full desired end-state. steps lists the stages in the approval order and must contain at least one stage. The property name stays steps so it matches selected_approvers.steps on Send Document. Learn more about approval workflows.
put/public/beta/templates/{template_id}/approval-workflow
Request
- Base URLhttps://api.pandadoc.com
- Auth
- API key in header Authorization
- or OAuth 2Authorization codehttps://app.pandadoc.com/oauth2/authorizeToken URLhttps://api.pandadoc.com/oauth2/access_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"steps": [
{
"assignee": {
"membership_id": "QMDSzwabfFzTgjW6KijHyu"
},
"group": {
"name": "Finance",
"type": "selectable",
"assignees": [
{
"membership_id": "QMDSzwabfFzTgjW6KijHyu"
}
]
}
}
]
}Response
Successfully created or replaced the Submit for approval configuration.
Example response
{
"steps": [
{
"id": "fq9CX7PWgpe7eao6ujEdYG",
"assignee": {
"id": "mGVeQe7xy9AN9eCg8VSdNm",
"user": {
"id": "FA5QAu8UGA3oVDQZuPL75B",
"email": "manager@example.com",
"first_name": "Alex",
"last_name": "Manager",
"avatar": "https://avatars.pandadoc-static.com/users/FA5QAu8UGA3oVDQZuPL75B/avatar.jpeg"
},
"is_selected": true
},
"group": {
"id": "XUF5pcWnMqYAfDX7mAD9kD",
"name": "Finance",
"type": "selectable",
"assignees": [
{
"id": "mGVeQe7xy9AN9eCg8VSdNm",
"user": {
"id": "FA5QAu8UGA3oVDQZuPL75B",
"email": "manager@example.com",
"first_name": "Alex",
"last_name": "Manager",
"avatar": "https://avatars.pandadoc-static.com/users/FA5QAu8UGA3oVDQZuPL75B/avatar.jpeg"
},
"is_selected": true
}
]
}
}
]
}Changes
- info
endpoint added
- info