Create an Exclusion Group
1 min
POST
https://api.optimizely.com/v2/groups
acceptstringGenerated from available response content types
bodyobjectA string in JSON format that includes all the fields to create an Exclusion Group
201Return the created Exclusion Group
400Invalid request body content
401Invalid credentials
403You do not have permission to create an Exclusion Group under the specified Project
defaultUnexpected error
curl --request POST \
--url https://api.optimizely.com/v2/groups \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"entities": [
{
"id": 3000,
"kind": "",
"weight": 1000
}
],
"name": "Homepage Group",
"project_id": 1000
}'