---
title: "Copy of Create a site"
method: PATCH
path: "/accounts/{account_id}/sites/{site_id}/"
---

# Copy of Create a site

`PATCH /accounts/{account_id}/sites/{site_id}/`

Add a new site with URLs

## Path parameters

- `account_id` integer, required
- `site_id` string, required

## Request body

- object
  - `name` string, required — Site name (must be unique for the team)
  - `type` string — Site type (production, staging, competitor, other)
  - `urls` object
    - object
      - `url` string, required — A valid URL (starting with http), f.i. https://www.speedcurve.com
      - `label` string, required — URL/page label
      - `script` string — Testing script
      - `auth` object
        - `username` string — HTTP Basic Auth username
        - `password` string — HTTP Basic Auth password

## Response `200`

200

- object
  - `data` object
    - `site_id` integer
    - `name` string
    - `type` string
    - `category` unknown
    - `color` unknown
    - `urls` object[]
      - `url_id` integer
      - `url` string
      - `label` string
    - `settings` object
      - `synthetic` object
        - `paused` boolean
        - `regions` object[]
          - `region_id` string
          - `name` string
        - `test_profiles` object[]
          - `name` string
        - `test_times` unknown[]
          - unknown
        - `test_runs` integer

---

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