EventsUpdate an Event
Update an Event
To partially update an event with the provided fields, make a PATCH call to the /events/{event_id} endpoint. Only the specified fields are updated. This endpoint only works for events in DRAFT or ACTIVE status.
Parameters
event_id: (path, string) Required. The ID that uniquely identifies the event. Example:1697732a-8664-4675-8415-c4aabaa17dae.
Request Examples
PATCH
https://api.cc.email/v3/events/{event_id}Endpoint Requirements
User privileges: campaign:writeAuthorization scopes: campaign_dataOkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"title\": \"Updated Event Title\",\n \"description\": \"Updated event description.\"\n}");
Request request = new Request.Builder()
.url("https://api.cc.email/v3/events/1697732a-8664-4675-8415-c4aabaa17dae")
.method("PATCH", body)
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer {access_token}")
.build();
Response response = client.newCall(request).execute();Example Response
A successful update returns a 204 No Content response with no body.
To learn more about event schema, see Event Schema
Test the endpoint using our reference tester:
Try it!Tagsevents