---
title: "Create or update an SLX SLI (upsert)"
method: POST
path: "/api/v1/workspaces/{workspace}/slis/sync"
tags: ["Custom Tasks"]
---

# Create or update an SLX SLI (upsert)

`POST /api/v1/workspaces/{workspace}/slis/sync`

## Path parameters

- `workspace` string, required

## Request body

- SyncRequest — Upsert envelope for SLX/Runbook/SLI sync. The payload shape matches the target resource.
  - `payload` object, required

## Response `200`

Upserted SLI

## Other responses

- `201` — Created

---

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