POST /v1/marketing/experiments
MarketingService_CreateExperiment
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
No path or query parameters.
Request body
attribution_modelstringattribution_window_secondsstringcodestringcurrencystringdescriptionstringends_atstringenvironment_idstringnamestringobjective_eventstringstarts_atstringvariantsarrayExpand fields
allocation_bpsinteger · int32campaign_idsarraycodestringexpected_cost_per_assignmentstringis_controlbooleannamestring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/marketing/experiments' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"attribution_model": "<value>",
"attribution_window_seconds": "<value>",
"code": "<value>",
"currency": "<value>",
"description": "<value>",
"ends_at": "<value>",
"environment_id": "<value>",
"name": "<value>",
"objective_event": "<value>",
"starts_at": "<value>",
"variants": [
{
"allocation_bps": 0,
"campaign_ids": [
"<value>"
],
"code": "<value>",
"expected_cost_per_assignment": "<value>",
"is_control": false,
"name": "<value>"
}
]
}'Response contract
200 · OK
attribution_modelstringattribution_window_secondsstringcodestringcreated_atstringcurrencystringdescriptionstringends_atstringenvironment_idstringidstringnamestringobjective_eventstringstarts_atstringstatusstringupdated_atstringvariantsarrayExpand fields
allocation_bpsinteger · int32campaign_idsarraycodestringexpected_cost_per_assignmentstringidstringis_controlbooleannamestring
versionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.