{
  "opencollection": "1.0.0",
  "info": {
    "name": "Amigo Account Form Templates API",
    "version": "0.1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Form Templates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Form Templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amigo.ai/v1/:workspace_id/settings/form-templates",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "category",
                "value": "",
                "type": "query"
              },
              {
                "name": "patient_type",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List all form templates for a workspace."
        },
        {
          "info": {
            "name": "Update Form Templates",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.amigo.ai/v1/:workspace_id/settings/form-templates",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Replace all form templates for a workspace."
        },
        {
          "info": {
            "name": "Get Form Template",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amigo.ai/v1/:workspace_id/settings/form-templates/:template_id",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "template_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a single form template by ID."
        },
        {
          "info": {
            "name": "Resolve Form Template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.amigo.ai/v1/:workspace_id/settings/form-templates/:template_id/resolve",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "template_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Resolve a form template with prefill values from entity state.\n\nReturns a hydrated SurfaceSpec ready to be passed to create_surface.\nFields with matching data in entity state get prefill_value set.\nFor returning patient templates, completed optional fields are stripped."
        }
      ]
    }
  ],
  "bundled": true
}