Installer.com Docs
API ReferenceWorkflow templates
POST
/api/routers/{routerId}/workflow-templates/{workflowTemplateId}/documents

Create workflow template document

Path Parameters

routerId*string
Formatuuid
workflowTemplateId*string
Formatuuid

Request Body

application/json

Create workflow template document payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "http://localhost:8000/api/routers/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflow-templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "content": {
    "type": "doc",
    "content": [
      {
        "type": "paragraph",
        "content": [
          {
            "type": "text",
            "text": "Hello world",
            "marks": [
              {
                "type": "bold"
              }
            ]
          }
        ]
      }
    ]
  },
  "type": "content",
  "fileId": "string",
  "fieldMappings": "string",
  "routerId": "c3d4372d-3cfa-4618-a60e-50a4c920823d",
  "public": true,
  "description": "string",
  "updatedAt": "2019-08-24",
  "createdAt": "2019-08-24",
  "deletedAt": "2019-08-24"
}