{
  "opencollection": "1.0.0",
  "info": {
    "name": "B3OS Workflow Action Templates API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Templates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "GET /v1/templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/templates",
            "params": [
              {
                "name": "category",
                "value": "",
                "type": "query",
                "description": "Template category (promoted, public, org, all)"
              },
              {
                "name": "tags",
                "value": "",
                "type": "query",
                "description": "Tag slugs to filter by (can specify multiple)"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of items (default 20, max 100)"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Offset for pagination (default 0)"
              }
            ]
          },
          "docs": "List templates by category and tags"
        },
        {
          "info": {
            "name": "POST /v1/templates",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/templates",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new workflow template"
        },
        {
          "info": {
            "name": "GET /v1/templates/by-source-workflow/{workflowId}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/templates/by-source-workflow/:workflowId",
            "params": [
              {
                "name": "workflowId",
                "value": "",
                "type": "path",
                "description": "Source workflow ID"
              }
            ]
          },
          "docs": "Get template by source workflow ID"
        },
        {
          "info": {
            "name": "PUT /v1/templates/{id}/promote",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/v1/templates/:id/promote",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Template ID"
              }
            ]
          },
          "docs": "Promote a template (admin only)"
        },
        {
          "info": {
            "name": "PUT /v1/templates/{id}/unpromote",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/v1/templates/:id/unpromote",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Template ID"
              }
            ]
          },
          "docs": "Unpromote a template (admin only)"
        },
        {
          "info": {
            "name": "PATCH /v1/templates/{templateId}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/v1/templates/:templateId",
            "params": [
              {
                "name": "templateId",
                "value": "",
                "type": "path",
                "description": "Template ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing workflow template"
        },
        {
          "info": {
            "name": "POST /v1/templates/{templateId}/rollback",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/templates/:templateId/rollback",
            "params": [
              {
                "name": "templateId",
                "value": "",
                "type": "path",
                "description": "Template ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Rollback template to a previous version"
        },
        {
          "info": {
            "name": "GET /v1/templates/{templateId}/versions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/templates/:templateId/versions",
            "params": [
              {
                "name": "templateId",
                "value": "",
                "type": "path",
                "description": "Template ID"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of items (default 20, max 100)"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Offset for pagination (default 0)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "List all versions of a template"
        },
        {
          "info": {
            "name": "GET /v1/templates/{templateId}/versions/count",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/templates/:templateId/versions/count",
            "params": [
              {
                "name": "templateId",
                "value": "",
                "type": "path",
                "description": "Template ID"
              }
            ]
          },
          "docs": "Count total versions for a specific template"
        },
        {
          "info": {
            "name": "GET /v1/templates/{templateId}/versions/{versionNumber}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/templates/:templateId/versions/:versionNumber",
            "params": [
              {
                "name": "templateId",
                "value": "",
                "type": "path",
                "description": "Template ID"
              },
              {
                "name": "versionNumber",
                "value": "",
                "type": "path",
                "description": "Version number"
              }
            ]
          },
          "docs": "Get a specific version of a template by version number"
        },
        {
          "info": {
            "name": "GET /v1/templates/recommended",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/templates/recommended",
            "params": [
              {
                "name": "category",
                "value": "",
                "type": "query",
                "description": "Template category: 'promoted', 'public', 'org', 'all'"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of templates to return (default: 20, max: 100)"
              },
              {
                "name": "strategy",
                "value": "",
                "type": "query",
                "description": "Recommendation strategy: 'strong_match', 'interest_based' (default), 'popular_with_interest'"
              }
            ]
          },
          "docs": "Get personalized template recommendations based on user's tag interests"
        }
      ]
    }
  ],
  "bundled": true
}