---
title: "POST /set_site"
method: POST
path: "/set_site"
tags: ["Função"]
---

# POST /set_site

`POST /set_site`

Cria worker e site caso necessário e retorna lista de configurações do site

## Request body

- SetSiteBody
  - `email` string
  - `identificador_site` string
  - `identificador_worker` string
  - `configuracao` string

## Response `200`

JSON com o resultado

- SiteFull[]
  - `mainDeployGroup` object
    - `name` string
    - `status` string
    - `hash` string
    - `type` string
    - `url` string
    - `userName` string
    - `updatedAt` string, date-time
  - `parsedDeploysGroups` object[]
    - `name` string
    - `status` string
    - `hash` string
    - `type` string
    - `url` string
    - `userName` string
    - `updatedAt` string, date-time
  - `localhosts` object[]
    - `userName` string
    - `userImage` string
    - `deployGroupName` string
    - `hash` string
    - `deployGroupUpdatedAt` string, date-time
    - `updatedAt` string, date-time
    - `status` string
    - `url` string

## Other responses

- `500` — Erro interno

## Changes

- **2023-06-13** `c9159f20c562` — 1 info
  - endpoint added
- **2023-06-09** `b7c6ba235941` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/bohr-io/apis/bohr-io-api/changes/set_site/post.md)

---

[API](https://skmtc.dev/bohr-io/apis/bohr-io-api.md) · [All operations](https://skmtc.dev/bohr-io/apis/bohr-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bohr-io/bohr-io-api/revisions/926405b5dade/schema)
