Update an existing event
Changed onUpdates an existing event
Request
- Base URLhttps://yournation.nationbuilder.com
- AuthHTTP bearer
Request body
Example request
{
"data": {
"id": "1",
"type": "events",
"attributes": {
"additional_rsvps_count": 20,
"attending_count": 100,
"auto_response_broadcaster_id": "1",
"auto_response_content": "Content of autoresponse",
"auto_response_subject": "Subject of autoresponse",
"capacity_count": 200,
"contact_email": "jdoe@work.com",
"contact_name": "John Doe",
"contact_phone_number": "5555555555",
"content": "Event description",
"donation_tracking_code_id": "1",
"duration": 3600,
"event_form_address": "required",
"event_form_phone": "required",
"point_person_id": "1",
"start_at": "2019-10-26T10:00:00-04:00",
"time_zone": "Eastern Time (US & Canada)",
"user_ticket_currency": "USD",
"user_ticket_price_in_cents": 400,
"user_ticket_purchase_url": "https://www.example.com",
"venue_name": "Event Center",
"venue_address_attributes": {
"address1": "20 W 34th St.",
"address2": "Suite 100",
"address3": null,
"city": "New York",
"state": "NY",
"zip": "10001",
"county": "New York County",
"country_code": "US",
"lat": "40.7484",
"lng": "73.9857",
"fips": "04",
"submitted_address": "20 W 34th St. Suite 100, New York, NY 10001",
"distance": 0,
"import_id": "2",
"work_phone": "5555555555",
"phone_number": "5555555555",
"phone_country_code": "1",
"work_phone_number": "5555555555",
"delete": true
}
}
}
}Response
The updated event.
Example response
{
"data": {
"id": "1",
"type": "events",
"attributes": {
"additional_rsvps_count": 20,
"attending_count": 100,
"auto_response_broadcaster_id": "1",
"auto_response_content": "Content of autoresponse",
"auto_response_subject": "Subject of autoresponse",
"capacity_count": 200,
"contact_email": "jdoe@work.com",
"contact_name": "John Doe",
"contact_phone_number": "5555555555",
"content": "Event description",
"donation_tracking_code_id": "1",
"duration": 3600,
"event_form_address": "required",
"event_form_phone": "required",
"point_person_id": "1",
"start_at": "2019-10-26T10:00:00-04:00",
"time_zone": "Eastern Time (US & Canada)",
"user_ticket_currency": "USD",
"user_ticket_price_in_cents": 400,
"user_ticket_purchase_url": "https://www.example.com",
"venue_name": "Event Center",
"page_id": "1"
}
},
"included": [
{
"id": "1"
}
]
}Changes
- breaking
added
subschema #2to the request bodyallOflist - breaking
the request's body type changed from
objectto no type - breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
from the response with the status - warning
removed the request property
- info
added the new optional
queryrequest parameterextra_fields[events]to all path's operations - info
added the media type
application/vnd.api+jsonto the request body - info
added
subschema #2to the response bodyallOflist for the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- warning
added the new
America/Adakenum value to the//////response property for the response status - warning
added the new
Antarctica/Trollenum value to the//////response property for the response status - warning
added the new
Australia/Euclaenum value to the//////response property for the response status - warning
added the new
Australia/Lord_Howeenum value to the//////response property for the response status - warning
added the new
Canada/Yukonenum value to the//////response property for the response status - warning
added the new
Pacific/Gambierenum value to the//////response property for the response status - warning
added the new
Pacific/Kiritimatienum value to the//////response property for the response status - warning
added the new
Pacific/Marquesasenum value to the//////response property for the response status - warning
added the new
Pacific/Pitcairnenum value to the//////response property for the response status - info
added the new
America/Adakenum value to the request property////// - info
added the new
Antarctica/Trollenum value to the request property////// - info
added the new
Australia/Euclaenum value to the request property////// - info
added the new
Australia/Lord_Howeenum value to the request property////// - info
added the new
Canada/Yukonenum value to the request property////// - info
added the new
Pacific/Gambierenum value to the request property////// - info
added the new
Pacific/Kiritimatienum value to the request property////// - info
added the new
Pacific/Marquesasenum value to the request property////// - info
added the new
Pacific/Pitcairnenum value to the request property//////
- warning