Pular para o conteúdo principal
POST
/
v1.0
/
events
Criar um ou mais eventos
curl --request POST \
  --url https://api.thatsme.com.br/api/v1.0/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    {
      "name": "<string>",
      "description": "<string>",
      "category": "SPORTS",
      "location_type": "PHYSICAL",
      "state": "<string>",
      "city": "<string>",
      "country": "<string>",
      "latitude": 123,
      "longitude": 123,
      "timezone": "<string>",
      "address": "<string>",
      "initial_date": "<string>",
      "finish_date": "<string>",
      "official_url": "<string>",
      "image_url": "<string>",
      "image_key": "<string>",
      "is_private": true,
      "date_mode": "SINGLE_DATE",
      "start_time": "<string>",
      "end_time": "<string>",
      "recurrence_type": "WEEKLY",
      "recurrence_start_date": "<string>",
      "connected_event_ids": [
        "<string>"
      ]
    }
  ]
}
'

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json

Objeto com os atributos de um evento ou array de eventos

events
object[]
obrigatório

Um evento ou array de eventos para criação

Minimum array length: 1

Resposta

Evento(s) criado(s) com sucesso