---
title: "Create an SLA template"
method: POST
path: "/api/v1/account/organizations/{id}/slas/templates"
tags: ["SLA"]
---

# Create an SLA template

`POST /api/v1/account/organizations/{id}/slas/templates`

## Request

- Base URL: `https://pcp.example.com`
- URL: `https://pcp.example.com/api/v1/account/organizations/{id}/slas/templates`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- TemplateCreateRequest: TemplateCreateRequest schema
  - `created_at` string, date-time
  - `data_classes` string[], nullable
  - `drills` object[], nullable
    - `type` string
  - `environment` string
  - `id` string, uuid
  - `name` string
  - `revision` integer
  - `revision_max` integer
  - `status` string
  - `tags` string[], nullable
  - `temporalities` object, nullable
  - `updated_at` string, date-time

## Response `200`

OK

- TemplateCreateResponse: TemplateCreateResponse schema
  - `created_at` string, date-time
  - `data_classes` string[], nullable
  - `drills` object[], nullable
    - `type` string
  - `environment` string
  - `id` string, uuid
  - `name` string
  - `revision` integer
  - `revision_max` integer
  - `status` string
  - `tags` string[], nullable
  - `temporalities` object, nullable
  - `updated_at` string, date-time

## Other responses

- `400`: Bad Request _(validation or deserialization error)_
- `401`: Missing, invalid or expired credentials
- `403`: The caller may not do this
- `500`: Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1.md) - [All operations](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/revisions/2ac049494a01?raw)
