Disconnect Material List from entity
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-lists/{id}/disconnect \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"from_entity": "",
"from_entity_id": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-lists/{id}/disconnect"
payload = {
"from_entity": "",
"from_entity_id": ""
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({from_entity: '', from_entity_id: ''})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-lists/{id}/disconnect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL or object not found"
}{
"message": "Internal Server Error"
}Material Lists
Disconnect Material List from entity
POST
/
material-lists
/
{id}
/
disconnect
Disconnect Material List from entity
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-lists/{id}/disconnect \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"from_entity": "",
"from_entity_id": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-lists/{id}/disconnect"
payload = {
"from_entity": "",
"from_entity_id": ""
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({from_entity: '', from_entity_id: ''})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-lists/{id}/disconnect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL or object not found"
}{
"message": "Internal Server Error"
}Was this page helpful?
⌘I