Reorder pipelines
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/opportunity_pipelines/reorder \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"positions": [
123
]
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({positions: [123]})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/opportunity_pipelines/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/opportunity_pipelines/reorder"
payload = { "positions": [123] }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"payload": [
{}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Opportunity Pipelines
Reorder pipelines
Persist funnel order.
POST
/
api
/
v1
/
accounts
/
{account_id}
/
opportunity_pipelines
/
reorder
Reorder pipelines
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/opportunity_pipelines/reorder \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"positions": [
123
]
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({positions: [123]})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/opportunity_pipelines/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/opportunity_pipelines/reorder"
payload = { "positions": [123] }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"payload": [
{}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}