Projects
Set the project's variants-prototype toggle
PUT
/
project
/
{projectId}
/
variants-enabled
Set the project's variants-prototype toggle
curl --request PUT \
--url https://backend.branch.flowengineering.com/project/{projectId}/variants-enabled \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'customer: <customer>' \
--data '
{
"enabled": true
}
'import requests
url = "https://backend.branch.flowengineering.com/project/{projectId}/variants-enabled"
payload = { "enabled": True }
headers = {
"customer": "<customer>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
customer: '<customer>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({enabled: true})
};
fetch('https://backend.branch.flowengineering.com/project/{projectId}/variants-enabled', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"enabled": true
}⌘I
Set the project's variants-prototype toggle
curl --request PUT \
--url https://backend.branch.flowengineering.com/project/{projectId}/variants-enabled \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'customer: <customer>' \
--data '
{
"enabled": true
}
'import requests
url = "https://backend.branch.flowengineering.com/project/{projectId}/variants-enabled"
payload = { "enabled": True }
headers = {
"customer": "<customer>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
customer: '<customer>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({enabled: true})
};
fetch('https://backend.branch.flowengineering.com/project/{projectId}/variants-enabled', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"enabled": true
}