Getbydepartment

以 Markdown 格式查看

Departments ranked by cost in the window; names enriched from Postgres when available.

Success data: { "window", "rows": [{ "department_id", "department_name", ... }] }

身份验证

AuthorizationBearer
Bearer credential containing a JWT, Virtual Key, or PAT.

请求头

X-Workspace-Idstring可选格式: "uuid"

Required for a normal JWT, Virtual Key, or PAT. A JWT may instead send X-Openmodel-User-Id. Not used by the public health endpoint.

X-Openmodel-User-Idstring可选格式: "uuid"

JWT-only alternative to X-Workspace-Id. Must be a UUID equal to the JWT subject; the server uses it as the workspace id. Not valid as the sole workspace header for Virtual Key or PAT authentication.

查询参数

presetenum可选默认为 30d

Calendar preset; default 30d.

startstring可选

YYYY-MM-DD with end.

endstring可选

YYYY-MM-DD with start.

limitinteger可选1-200默认为 50

Max rows (default 50, max 200).

响应

codeinteger
messagestring
dataany