---
title: "POST /api/ee/workspace/test-resources"
method: POST
path: "/api/ee/workspace/test-resources"
tags: ["/api/ee/workspace"]
---

# POST /api/ee/workspace/test-resources

`POST /api/ee/workspace/test-resources`

Create test resources for workspace e2e tests. Only available in dev/test mode.

     Optionally accepts a database_id in the body; if not provided it will try to use the sample database.

## Request body

- MetabaseEnterpriseWorkspacesApiTestResourcesRequest — Request body for creating test resources.
  - `database_id` integer — value must be an integer greater than zero.
  - `global` MetabaseEnterpriseWorkspacesApiDependencyGraph — Map of shorthand symbols to lists of dependencies. The latter are all strings, and refs need to be detected.
  - `workspace` object
    - `checkouts` string[]
    - `definitions` MetabaseEnterpriseWorkspacesApiDependencyGraph — Map of shorthand symbols to lists of dependencies. The latter are all strings, and refs need to be detected.
    - `name` string

## Response `2XX`

Successful response

- MetabaseEnterpriseWorkspacesApiTestResourcesResponse — Response from creating test resources.
  - `global-map` object, required
  - `workspace-id` integer, nullable, required
  - `workspace-map` object, required

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

## Changes

- **2026-03-09** `78297d193ca4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/ee/workspace/test-resources/post.md)

---

[API](https://skmtc.dev/metabase/apis/metabase-api.md) · [All operations](https://skmtc.dev/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/78297d193ca4/schema)
