Create a Custom Event
1 min
POST
https://api.optimizely.com/v2/projects/{project_id}/custom_events
project_idinteger<int64>The Project ID of the Project you want to create an Custom Event in
acceptstringGenerated from available response content types
bodyobjectA string in JSON format that includes all the fields to create a Custom Event
201Return the created Custom Event
400Invalid request body supplied
401Invalid credentials
403You do not have access to the specified Project
defaultUnexpected error
curl --request POST \
--url https://api.optimizely.com/v2/projects/{project_id}/custom_events \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"key": "loaded_new_app"
}'