Mutation
mutation ExportWorkflowTemplate($input: ExportWorkflowTemplateInput!) {
exportWorkflowTemplate(input: $input) {
files {
path
content
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowId": "id"
}
}Response
{
"data": {
"exportWorkflowTemplate": {
"files": [
{
"path": "string",
"content": "string"
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
exportWorkflowTemplate
Build the files for publishing a workflow as a template; writes nothing. Requires the
workflowRule:create permission.
MUTATION
exportWorkflowTemplate(input: ExportWorkflowTemplateInput!): ExportWorkflowTemplateOutput!Arguments
input
required
Returns
files
The template's workflows. Everything else a template needs is authored in Notion. Empty when error is set.
error
Mutation
mutation ExportWorkflowTemplate($input: ExportWorkflowTemplateInput!) {
exportWorkflowTemplate(input: $input) {
files {
path
content
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowId": "id"
}
}Response
{
"data": {
"exportWorkflowTemplate": {
"files": [
{
"path": "string",
"content": "string"
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

