Skip to main content
PATCH
/
events
/
{event}
/
batches
/
{batch}
Atualizar lote
curl --request PATCH \
  --url http://localhost/api/v1/events/{event}/batches/{batch} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "starts_at": "2023-11-07T05:31:56Z",
  "ends_at": "2023-11-07T05:31:56Z",
  "max_quantity": 500000,
  "includes_kit": true,
  "is_active": true,
  "installments_enabled": true,
  "max_installments": 6,
  "absorb_installment_interest": true,
  "sort_order": 1,
  "race_prices": [
    1
  ]
}
'
{
  "data": {
    "id": 123,
    "event_id": 123,
    "name": "<string>",
    "starts_at": "<string>",
    "ends_at": "<string>",
    "includes_kit": true,
    "max_quantity": 123,
    "quantity_sold": 123,
    "quantity_reserved": 123,
    "is_active": true,
    "installments_enabled": true,
    "max_installments": 123,
    "absorb_installment_interest": true,
    "sort_order": 123,
    "race_prices": [
      "<unknown>"
    ],
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key do hub com escopo manage. Header: Authorization: Bearer <api_key>.

Path Parameters

event
string
required
batch
required

Body

application/json

PATCH /api/v1/events/{event}/batches/{batch} — atualização parcial do ingresso.

name
string
Maximum string length: 120
starts_at
string<date-time> | null
ends_at
string<date-time> | null
max_quantity
integer | null
Required range: 1 <= x <= 1000000
includes_kit
boolean
is_active
boolean
installments_enabled
boolean
max_installments
integer
Required range: 1 <= x <= 12
absorb_installment_interest
boolean
sort_order
integer
Required range: x >= 0
race_prices
integer[]
Minimum array length: 1
Required range: x >= 0

Response

JsonResource

data
RegistrationBatchResource · object
required