API referenceEvents
Update an event
Update an event. Only the fields you send are changed.
PATCH
Update an event. Only the fields you send are changed.
httpheader
AuthorizationBearer <token>id*stringapplication/json- body
Create (POST) or update (PATCH) an event. On update every field is optional. Times are ISO 8601; they are stored in the organisation's local time.
name*stringLength
2 <= length <= 255slug?|Length
length <= 255starts_at*stringFormat
date-timeends_at*stringFormat
date-timesale_starts_at?|Format
date-timesale_ends_at?|Format
date-timewebsite?|Format
uriLength
length <= 255location?EventResource
application/json- response
id*stringobject*stringname*stringslug*stringstarts_at*string|nullends_at*string|nullis_whole_day*booleansale_starts_at*string|nullsale_ends_at*string|nullsale_status*stringValue in
"not_started""ended""active"shop_url*stringlocation*website*string|nulldefault_language*stringavailable_languages*array<unknown>days*array<>created_at*string|nullupdated_at*string|nullcurl -X PATCH 'https://api.tixxy.nl/v1/events/string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "starts_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z"}'Example Response
{ "id": "string", "object": "event", "name": "string", "slug": "string", "starts_at": "string", "ends_at": "string", "is_whole_day": true, "sale_starts_at": "string", "sale_ends_at": "string", "sale_status": "not_started", "shop_url": "string", "location": { "name": "string", "address": "string", "latitude": 0, "longitude": 0 }, "website": "string", "default_language": "string", "available_languages": [ null ], "days": [ { "id": "string", "object": "event_day", "date": "string", "start_time": "string", "end_time": "string", "capacity": 0, "is_active": true } ], "created_at": "string", "updated_at": "string"}