Update asset by ID
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "",
"status": "",
"customer_id": "",
"maintenance_agreement_id": "",
"asset_category_id": "",
"asset_type": "",
"is_template": "",
"tag": "",
"location": "",
"install_date": "",
"manufacturer": "",
"model": "",
"model_number": "",
"serial_number": "",
"model_year": "",
"model_details": "",
"warranty_expiration": "",
"labor_warranty_expiration": "",
"warranty_information": "",
"labor_warranty_information": "",
"condition": "",
"issues": "",
"notes": "",
"job_ids": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets/{id}"
payload = {
"title": "",
"status": "",
"customer_id": "",
"maintenance_agreement_id": "",
"asset_category_id": "",
"asset_type": "",
"is_template": "",
"tag": "",
"location": "",
"install_date": "",
"manufacturer": "",
"model": "",
"model_number": "",
"serial_number": "",
"model_year": "",
"model_details": "",
"warranty_expiration": "",
"labor_warranty_expiration": "",
"warranty_information": "",
"labor_warranty_information": "",
"condition": "",
"issues": "",
"notes": "",
"job_ids": ""
}
headers = {
"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: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '',
status: '',
customer_id: '',
maintenance_agreement_id: '',
asset_category_id: '',
asset_type: '',
is_template: '',
tag: '',
location: '',
install_date: '',
manufacturer: '',
model: '',
model_number: '',
serial_number: '',
model_year: '',
model_details: '',
warranty_expiration: '',
labor_warranty_expiration: '',
warranty_information: '',
labor_warranty_information: '',
condition: '',
issues: '',
notes: '',
job_ids: ''
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Assets
Update asset by ID
PUT
/
assets
/
{id}
Update asset by ID
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "",
"status": "",
"customer_id": "",
"maintenance_agreement_id": "",
"asset_category_id": "",
"asset_type": "",
"is_template": "",
"tag": "",
"location": "",
"install_date": "",
"manufacturer": "",
"model": "",
"model_number": "",
"serial_number": "",
"model_year": "",
"model_details": "",
"warranty_expiration": "",
"labor_warranty_expiration": "",
"warranty_information": "",
"labor_warranty_information": "",
"condition": "",
"issues": "",
"notes": "",
"job_ids": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets/{id}"
payload = {
"title": "",
"status": "",
"customer_id": "",
"maintenance_agreement_id": "",
"asset_category_id": "",
"asset_type": "",
"is_template": "",
"tag": "",
"location": "",
"install_date": "",
"manufacturer": "",
"model": "",
"model_number": "",
"serial_number": "",
"model_year": "",
"model_details": "",
"warranty_expiration": "",
"labor_warranty_expiration": "",
"warranty_information": "",
"labor_warranty_information": "",
"condition": "",
"issues": "",
"notes": "",
"job_ids": ""
}
headers = {
"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: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '',
status: '',
customer_id: '',
maintenance_agreement_id: '',
asset_category_id: '',
asset_type: '',
is_template: '',
tag: '',
location: '',
install_date: '',
manufacturer: '',
model: '',
model_number: '',
serial_number: '',
model_year: '',
model_details: '',
warranty_expiration: '',
labor_warranty_expiration: '',
warranty_information: '',
labor_warranty_information: '',
condition: '',
issues: '',
notes: '',
job_ids: ''
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/assets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Was this page helpful?
⌘I