Update Material List by ID
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-list/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"is_template": "",
"customer_id": "",
"author_id": "",
"title": "",
"notes": "",
"internal_notes": "",
"status_id": "",
"status_workflow_id": "",
"groupings": [
{
"order_number": "",
"title": "",
"type": "",
"description": "",
"component_visibility": "",
"price_visibility": "",
"quantity": "",
"commission_amount": "",
"hvi_amount": "",
"pricebook_id": "",
"flat_rate_job_id": "",
"line_items": [
{
"id": "",
"item_id": "",
"quantity": "",
"unit_price": "",
"unit_cost": "",
"taxable": "",
"title": "",
"description": "",
"type": "",
"sku": "",
"unit_measure": "",
"tax_rate": "",
"xero_sales_account": "",
"xero_tax_account": "",
"reece_item": "",
"external_type": "",
"external_id": "",
"external_sync_status": "",
"additional_reece_item": "",
"qbo_income_account_id": "",
"qbo_sales_tax_code_id": "",
"qbo_expense_account_id": "",
"granite_group_item": "",
"minimum_order_quantity": "",
"price_update_method": "",
"automatic_markup_percentage": "",
"serialized_inventory_id": "",
"inventory_mode": "",
"ces_item": ""
}
]
}
],
"customfields": [
{
"id": "",
"field_instance_id": "",
"value": ""
},
{
"id": "",
"field_instance_id": "",
"value": ""
}
],
"assignments": [
{
"user_id": "",
"team_id": ""
}
],
"tags": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-list/{id}"
payload = {
"is_template": "",
"customer_id": "",
"author_id": "",
"title": "",
"notes": "",
"internal_notes": "",
"status_id": "",
"status_workflow_id": "",
"groupings": [
{
"order_number": "",
"title": "",
"type": "",
"description": "",
"component_visibility": "",
"price_visibility": "",
"quantity": "",
"commission_amount": "",
"hvi_amount": "",
"pricebook_id": "",
"flat_rate_job_id": "",
"line_items": [
{
"id": "",
"item_id": "",
"quantity": "",
"unit_price": "",
"unit_cost": "",
"taxable": "",
"title": "",
"description": "",
"type": "",
"sku": "",
"unit_measure": "",
"tax_rate": "",
"xero_sales_account": "",
"xero_tax_account": "",
"reece_item": "",
"external_type": "",
"external_id": "",
"external_sync_status": "",
"additional_reece_item": "",
"qbo_income_account_id": "",
"qbo_sales_tax_code_id": "",
"qbo_expense_account_id": "",
"granite_group_item": "",
"minimum_order_quantity": "",
"price_update_method": "",
"automatic_markup_percentage": "",
"serialized_inventory_id": "",
"inventory_mode": "",
"ces_item": ""
}
]
}
],
"customfields": [
{
"id": "",
"field_instance_id": "",
"value": ""
},
{
"id": "",
"field_instance_id": "",
"value": ""
}
],
"assignments": [
{
"user_id": "",
"team_id": ""
}
],
"tags": ""
}
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({
is_template: '',
customer_id: '',
author_id: '',
title: '',
notes: '',
internal_notes: '',
status_id: '',
status_workflow_id: '',
groupings: [
{
order_number: '',
title: '',
type: '',
description: '',
component_visibility: '',
price_visibility: '',
quantity: '',
commission_amount: '',
hvi_amount: '',
pricebook_id: '',
flat_rate_job_id: '',
line_items: [
{
id: '',
item_id: '',
quantity: '',
unit_price: '',
unit_cost: '',
taxable: '',
title: '',
description: '',
type: '',
sku: '',
unit_measure: '',
tax_rate: '',
xero_sales_account: '',
xero_tax_account: '',
reece_item: '',
external_type: '',
external_id: '',
external_sync_status: '',
additional_reece_item: '',
qbo_income_account_id: '',
qbo_sales_tax_code_id: '',
qbo_expense_account_id: '',
granite_group_item: '',
minimum_order_quantity: '',
price_update_method: '',
automatic_markup_percentage: '',
serialized_inventory_id: '',
inventory_mode: '',
ces_item: ''
}
]
}
],
customfields: [
{id: '', field_instance_id: '', value: ''},
{id: '', field_instance_id: '', value: ''}
],
assignments: [{user_id: '', team_id: ''}],
tags: ''
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-list/{id}', 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
Update Material List by ID
PUT
/
material-list
/
{id}
Update Material List by ID
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-list/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"is_template": "",
"customer_id": "",
"author_id": "",
"title": "",
"notes": "",
"internal_notes": "",
"status_id": "",
"status_workflow_id": "",
"groupings": [
{
"order_number": "",
"title": "",
"type": "",
"description": "",
"component_visibility": "",
"price_visibility": "",
"quantity": "",
"commission_amount": "",
"hvi_amount": "",
"pricebook_id": "",
"flat_rate_job_id": "",
"line_items": [
{
"id": "",
"item_id": "",
"quantity": "",
"unit_price": "",
"unit_cost": "",
"taxable": "",
"title": "",
"description": "",
"type": "",
"sku": "",
"unit_measure": "",
"tax_rate": "",
"xero_sales_account": "",
"xero_tax_account": "",
"reece_item": "",
"external_type": "",
"external_id": "",
"external_sync_status": "",
"additional_reece_item": "",
"qbo_income_account_id": "",
"qbo_sales_tax_code_id": "",
"qbo_expense_account_id": "",
"granite_group_item": "",
"minimum_order_quantity": "",
"price_update_method": "",
"automatic_markup_percentage": "",
"serialized_inventory_id": "",
"inventory_mode": "",
"ces_item": ""
}
]
}
],
"customfields": [
{
"id": "",
"field_instance_id": "",
"value": ""
},
{
"id": "",
"field_instance_id": "",
"value": ""
}
],
"assignments": [
{
"user_id": "",
"team_id": ""
}
],
"tags": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-list/{id}"
payload = {
"is_template": "",
"customer_id": "",
"author_id": "",
"title": "",
"notes": "",
"internal_notes": "",
"status_id": "",
"status_workflow_id": "",
"groupings": [
{
"order_number": "",
"title": "",
"type": "",
"description": "",
"component_visibility": "",
"price_visibility": "",
"quantity": "",
"commission_amount": "",
"hvi_amount": "",
"pricebook_id": "",
"flat_rate_job_id": "",
"line_items": [
{
"id": "",
"item_id": "",
"quantity": "",
"unit_price": "",
"unit_cost": "",
"taxable": "",
"title": "",
"description": "",
"type": "",
"sku": "",
"unit_measure": "",
"tax_rate": "",
"xero_sales_account": "",
"xero_tax_account": "",
"reece_item": "",
"external_type": "",
"external_id": "",
"external_sync_status": "",
"additional_reece_item": "",
"qbo_income_account_id": "",
"qbo_sales_tax_code_id": "",
"qbo_expense_account_id": "",
"granite_group_item": "",
"minimum_order_quantity": "",
"price_update_method": "",
"automatic_markup_percentage": "",
"serialized_inventory_id": "",
"inventory_mode": "",
"ces_item": ""
}
]
}
],
"customfields": [
{
"id": "",
"field_instance_id": "",
"value": ""
},
{
"id": "",
"field_instance_id": "",
"value": ""
}
],
"assignments": [
{
"user_id": "",
"team_id": ""
}
],
"tags": ""
}
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({
is_template: '',
customer_id: '',
author_id: '',
title: '',
notes: '',
internal_notes: '',
status_id: '',
status_workflow_id: '',
groupings: [
{
order_number: '',
title: '',
type: '',
description: '',
component_visibility: '',
price_visibility: '',
quantity: '',
commission_amount: '',
hvi_amount: '',
pricebook_id: '',
flat_rate_job_id: '',
line_items: [
{
id: '',
item_id: '',
quantity: '',
unit_price: '',
unit_cost: '',
taxable: '',
title: '',
description: '',
type: '',
sku: '',
unit_measure: '',
tax_rate: '',
xero_sales_account: '',
xero_tax_account: '',
reece_item: '',
external_type: '',
external_id: '',
external_sync_status: '',
additional_reece_item: '',
qbo_income_account_id: '',
qbo_sales_tax_code_id: '',
qbo_expense_account_id: '',
granite_group_item: '',
minimum_order_quantity: '',
price_update_method: '',
automatic_markup_percentage: '',
serialized_inventory_id: '',
inventory_mode: '',
ces_item: ''
}
]
}
],
customfields: [
{id: '', field_instance_id: '', value: ''},
{id: '', field_instance_id: '', value: ''}
],
assignments: [{user_id: '', team_id: ''}],
tags: ''
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/material-list/{id}', 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?