---
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

---

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