---
title: "Run RM tests for a given service"
method: POST
path: "/services/{serviceId}/baseline"
tags: ["services"]
---

# Run RM tests for a given service

`POST /services/{serviceId}/baseline`

By default this endpoint initiates all RM Tests in your Test Suite for this service and every one of it's dependencies. 
You may also supply a list of RM tests in the body if you which to constrain to a subset of all tests, but they *must* be in the active Test Suite for your team
Requires the privilege [`SERVICES_RUN`](https://www.gremlin.com/docs/user-management/access-control/#privileges)

## Path parameters

- `serviceId` string, required

## Query parameters

- `teamId` string, required

## Request body

- StartBaselineRequest — Represents a request to run all tests
  - `tests` string[]

## Response `default`

default response

- TestSeriesRunResponse
  - `teamId` string
  - `serviceId` string
  - `startTime` string, date-time
  - `pauseUntil` string, date-time
  - `pauseReason` string
  - `tests` string[]
  - `currentTestIndex` integer
  - `createdBy` string
  - `state` 'PENDING' | 'ACTIVE' | 'FINISHED' | 'HALTED' | 'FAILED'

## Other responses

- `401` — Authorization header missing or malformed. Please provide proper credentials in the authorization header.
- `403` — User requires privilege for target team: SERVICES_RUN

---

[API](https://skmtc.net/gremlin/apis/gremlin-api.md) · [All operations](https://skmtc.net/gremlin/apis/gremlin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gremlin/gremlin-api/versions/70fe938a0b35/schema)
