---
title: "Create schedule strategy"
method: POST
path: "/api/v1/strategies"
tags: ["Strategies"]
---

# Create schedule strategy

`POST /api/v1/strategies`

Create a new schedule strategy.

## Request body

- RestCreateScheduleStrategyRequest
  - `commandRegex` string
  - `executionTime` integer
  - `k8sNamespace` string[]
  - `labelSelectors` GithubComGthulhuApiManagerRestLabelSelector[]
    - `key` string
    - `value` string
  - `priority` integer
  - `strategyNamespace` string

## Response `200`

OK

- GithubComGthulhuApiManagerRestSuccessResponseGithubComGthulhuApiManagerRestEmptyResponse
  - `data` GithubComGthulhuApiManagerRestEmptyResponse
  - `success` boolean
  - `timestamp` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

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