---
title: "POST /api/v1/sla-reports/"
method: POST
path: "/api/v1/sla-reports/"
tags: ["sla-reports"]
---

# POST /api/v1/sla-reports/

`POST /api/v1/sla-reports/`

## Request

- Base URL: `https://uptime.com` (the document declares no server; this is the origin it was published from)
- URL: `https://uptime.com/api/v1/sla-reports/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/docs/api/v1/sla-reports/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new SLA report

## Request body

- SLAReport
  - `pk` integer
  - `url` string
  - `stats_url` string
  - `services_tags` string[]: Include checks with one or more of the selected tags
  - `services_selected` string[]: Include checks from this list
  - `reporting_groups` object[]
    - `id` integer
    - `group_services` string[], required: Include checks from this list.
    - `created_at` string, date-time
    - `modified_at` string, date-time
    - `name` string, required: Name of this SLA report Group
  - `created_at` string, date-time
  - `name` string, required: Name of this SLA report
  - `default_date_range` 'TODAY' | 'YESTERDAY' | 'LAST_7D' | 'LAST_30D' | 'THIS_WEEK' | 'LAST_WEEK' | 'THIS_MONTH' | 'LAST_MONTH'
  - `show_uptime_section` boolean
  - `show_uptime_sla` boolean
  - `filter_with_downtime` boolean
  - `filter_uptime_sla_violations` boolean
  - `uptime_section_sort` 'BY_UPTIME' | 'BY_SLA'
  - `show_response_time_section` boolean
  - `show_response_time_sla` boolean
  - `filter_slowest` boolean
  - `filter_response_time_sla_violations` boolean
  - `response_time_section_sort` 'BY_RESPONSE_TIME' | 'BY_SLA'
  - `logo` string, binary, nullable

## Response `200`

- SLAReport
  - `pk` integer
  - `url` string
  - `stats_url` string
  - `services_tags` string[]: Include checks with one or more of the selected tags
  - `services_selected` string[]: Include checks from this list
  - `reporting_groups` object[]
    - `id` integer
    - `group_services` string[], required: Include checks from this list.
    - `created_at` string, date-time
    - `modified_at` string, date-time
    - `name` string, required: Name of this SLA report Group
  - `created_at` string, date-time
  - `name` string, required: Name of this SLA report
  - `default_date_range` 'TODAY' | 'YESTERDAY' | 'LAST_7D' | 'LAST_30D' | 'THIS_WEEK' | 'LAST_WEEK' | 'THIS_MONTH' | 'LAST_MONTH'
  - `show_uptime_section` boolean
  - `show_uptime_sla` boolean
  - `filter_with_downtime` boolean
  - `filter_uptime_sla_violations` boolean
  - `uptime_section_sort` 'BY_UPTIME' | 'BY_SLA'
  - `show_response_time_section` boolean
  - `show_response_time_sla` boolean
  - `filter_slowest` boolean
  - `filter_response_time_sla_violations` boolean
  - `response_time_section_sort` 'BY_RESPONSE_TIME' | 'BY_SLA'
  - `logo` string, binary, nullable

---

[API](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema.md) - [All operations](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/llms.txt) - [OpenAPI document](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/revisions/e1e4a57a60d8?raw)
