{
  "opencollection": "1.0.0",
  "info": {
    "name": "papi alert-query-proxy sync API",
    "version": "2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "sync",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Upsert an SLX",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/slxs/sync",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Upsert an SLX record using SHA-based deduplication."
        },
        {
          "info": {
            "name": "Soft-delete an SLX",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/slxs/:name",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Soft-delete an SLX by name."
        },
        {
          "info": {
            "name": "[dev only] Re-reconcile slx_tasks for a workspace",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/slxs/reconcile-tasks",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Re-run the slx_tasks reconcile for every runbook in a workspace.\n\nDev-only validation hook: the production trigger is the runbook reconcile\nhook (sync endpoints / workspace-upload pipeline), but seeded/migrated\nworkspaces have runbooks without slx_tasks rows until something re-syncs.\nReconciles from the runbooks' current resolved_tasks/task_details — no\nrobot re-parse — so it works without git access. Returns 404 outside the\ndevelopment environment."
        },
        {
          "info": {
            "name": "Upsert an SLI",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/slis/sync",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Upsert an SLI record.  The slx_id must be present in the payload."
        },
        {
          "info": {
            "name": "Soft-delete an SLI by its parent SLX name",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/slis/:slx_name",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "slx_name",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Soft-delete an SLI identified by its parent SLX name."
        },
        {
          "info": {
            "name": "Upsert an SLO",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/slos/sync",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Upsert an SLO record.  The slx_id must be present in the payload."
        },
        {
          "info": {
            "name": "Soft-delete an SLO by its parent SLX name",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/slos/:slx_name",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "slx_name",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Soft-delete an SLO identified by its parent SLX name."
        },
        {
          "info": {
            "name": "Upsert a Runbook",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/runbooks/sync",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Upsert a Runbook record.  The slx_id must be present in the payload."
        },
        {
          "info": {
            "name": "Soft-delete a Runbook by its parent SLX name",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/runbooks/:slx_name",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "slx_name",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Soft-delete a Runbook identified by its parent SLX name."
        },
        {
          "info": {
            "name": "Upsert a Persona",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/personas/sync",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Upsert a Persona record."
        },
        {
          "info": {
            "name": "Soft-delete a Persona",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/personas/:name",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Soft-delete a Persona by name."
        },
        {
          "info": {
            "name": "Upsert a Workflow",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/workflows/sync",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Upsert a Workflow record."
        },
        {
          "info": {
            "name": "Soft-delete a Workflow",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/workflows/:name",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Soft-delete a Workflow by name."
        },
        {
          "info": {
            "name": "Upsert a Workspace",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/workspaces/:workspace_name/sync",
            "params": [
              {
                "name": "workspace_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Upsert a Workspace record.\n\nWorkspace deletion is handled by the dedicated workspace deletion flow\nand is not exposed here."
        }
      ]
    }
  ],
  "bundled": true
}