Create a metric in GoodData Cloud using MAQL and the workspace entity API, then retrieve it for use in a dashboard

domain: www.gooddata.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain a GoodData Cloud API token from your profile settings and set it as a Bearer token in the Authorization header for all API calls
  2. POST to /api/v1/entities/workspaces/{workspace-id}/metrics with a JSON body containing id, type: metric, attributes with title, description, and content fields; the content field includes a format string and a maql expression
  3. Write the MAQL expression using facts, attributes, and previously defined metrics from your logical data model (e.g., SELECT SUM(revenue) WHERE region = 'US')
  4. After creation, retrieve the metric with GET /api/v1/entities/workspaces/{workspace-id}/metrics/{metric-id} to confirm the definition was stored correctly
  5. Reference the metric in Analytical Designer or embed it in a dashboard widget by its id; metrics created via API appear alongside metrics created in the Metric Editor UI

Known gotchas

Related routes

Query the dbt Cloud Semantic Layer GraphQL API to retrieve metric values with dimension breakdowns
docs.getdbt.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans