Entities
Reorder downstream links of an entity
PUT
/
project
/
{projectId}
/
entities
/
{parentId}
/
children
/
reorder
Reorder downstream links of an entity
curl --request PUT \
--url https://backend.branch.flowengineering.com/project/{projectId}/entities/{parentId}/children/reorder \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'customer: <customer>' \
--data '
{
"childIds": [
"<string>"
],
"branchId": "<string>"
}
'import requests
url = "https://backend.branch.flowengineering.com/project/{projectId}/entities/{parentId}/children/reorder"
payload = {
"childIds": ["<string>"],
"branchId": "<string>"
}
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({childIds: ['<string>'], branchId: '<string>'})
};
fetch('https://backend.branch.flowengineering.com/project/{projectId}/entities/{parentId}/children/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));⌘I
Reorder downstream links of an entity
curl --request PUT \
--url https://backend.branch.flowengineering.com/project/{projectId}/entities/{parentId}/children/reorder \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'customer: <customer>' \
--data '
{
"childIds": [
"<string>"
],
"branchId": "<string>"
}
'import requests
url = "https://backend.branch.flowengineering.com/project/{projectId}/entities/{parentId}/children/reorder"
payload = {
"childIds": ["<string>"],
"branchId": "<string>"
}
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({childIds: ['<string>'], branchId: '<string>'})
};
fetch('https://backend.branch.flowengineering.com/project/{projectId}/entities/{parentId}/children/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));