Create an Extension
1 min
POST
https://api.optimizely.com/v2/extensions
acceptstringGenerated from available response content types
bodyobjectA string in JSON format that includes all the fields to create an extension
201Return the created extension
400Invalid request body content
401Invalid credentials
403You do not have permission to create an extension under the specified project
defaultUnexpected error
curl --request POST \
--url https://api.optimizely.com/v2/extensions \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"edit_url": "",
"fields": [
{
"api_name": "",
"default_value": "",
"field_type": "",
"label": ""
}
],
"implementation": {},
"name": "My Extension",
"project_id": 1000
}'