Pular para o conteúdo principal
PATCH
/
v1.0
/
events
/
{id}
Atualizar um evento específico
curl --request PATCH \
  --url https://api.thatsme.com.br/api/v1.0/events/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "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.

Parâmetros de caminho

id
string
obrigatório

ID do evento

Corpo

application/json
name
string

Nome do evento

description
string

Descrição do evento

category
enum<string>

Categoria do evento

Opções disponíveis:
SPORTS,
EDUCATION,
CORPORATE,
SOCIOCULTURAL
location_type
enum<string>

Tipo de localização do evento

Opções disponíveis:
PHYSICAL,
ONLINE
state
string | null

State or province of the event.

city
string | null

City of the event.

country
string | null

ISO 3166-1 alpha-2 country code.

latitude
number | null

Latitude of the event location.

longitude
number | null

Longitude of the event location.

timezone
string | null

IANA timezone identifier.

address
string | null

Full formatted address.

initial_date
string

Data de início em formato ISO 8601

finish_date
string

Data de término em formato ISO 8601

official_url
string

URL oficial do evento

image_url
string

URL pública da imagem do evento

image_key
string

Identificador da imagem no storage da That's Me (ex.: S3)

is_private
boolean

Define se o evento é privado

date_mode
enum<string>

Modo de datas do evento

Opções disponíveis:
SINGLE_DATE,
DATE_RANGE,
RECURRING,
ALWAYS_AVAILABLE
start_time
string

Horário de início (quando aplicável)

end_time
string

Horário de término (quando aplicável)

recurrence_type
enum<string>

Tipo de recorrência

Opções disponíveis:
WEEKLY,
BIWEEKLY,
MONTHLY,
BIMONTHLY,
QUARTERLY,
SEMIANNUAL,
ANNUAL
recurrence_start_date
string

Data de início da recorrência em formato ISO 8601

connected_event_ids
string[]

Lista de IDs de eventos conectados

Resposta

Evento atualizado com sucesso