Insert/update lease records (async)
curl --request PUT \
--url https://api.tangoanalytics.com/v1/leasemgmt/batch/leases \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>' \
--data '
{
"records": [
{
"lease_id": "<string>",
"lease_number": "<string>",
"country": "<string>",
"brand_id": "<string>",
"legal_entity": "<string>",
"lease_type_code": "<string>",
"lease_financials_group": "<string>",
"lease_acct_classification": "<string>",
"disposition_type": "<string>",
"lease_portfolio_type": "<string>",
"currency_code": "<string>",
"tenancy_type": "<string>",
"area_measure": "<string>",
"rent_prorate_method": "<string>",
"term_status": "<string>",
"options": [
{}
],
"contacts": [
{}
],
"recurring_costs": [
{}
],
"allocations": [
{
"alloc_supplier_site_number": "<string>",
"allocation_percentage": 123
}
],
"obligations": [
{
"obl_type": "<string>"
}
],
"clauses": [
{
"clause_type": "<string>"
}
]
}
]
}
'const options = {
method: 'PUT',
headers: {
'x-client': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
records: [
{
lease_id: '<string>',
lease_number: '<string>',
country: '<string>',
brand_id: '<string>',
legal_entity: '<string>',
lease_type_code: '<string>',
lease_financials_group: '<string>',
lease_acct_classification: '<string>',
disposition_type: '<string>',
lease_portfolio_type: '<string>',
currency_code: '<string>',
tenancy_type: '<string>',
area_measure: '<string>',
rent_prorate_method: '<string>',
term_status: '<string>',
options: [{}],
contacts: [{}],
recurring_costs: [{}],
allocations: [{alloc_supplier_site_number: '<string>', allocation_percentage: 123}],
obligations: [{obl_type: '<string>'}],
clauses: [{clause_type: '<string>'}]
}
]
})
};
fetch('https://api.tangoanalytics.com/v1/leasemgmt/batch/leases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/leasemgmt/batch/leases"
payload = { "records": [
{
"lease_id": "<string>",
"lease_number": "<string>",
"country": "<string>",
"brand_id": "<string>",
"legal_entity": "<string>",
"lease_type_code": "<string>",
"lease_financials_group": "<string>",
"lease_acct_classification": "<string>",
"disposition_type": "<string>",
"lease_portfolio_type": "<string>",
"currency_code": "<string>",
"tenancy_type": "<string>",
"area_measure": "<string>",
"rent_prorate_method": "<string>",
"term_status": "<string>",
"options": [{}],
"contacts": [{}],
"recurring_costs": [{}],
"allocations": [
{
"alloc_supplier_site_number": "<string>",
"allocation_percentage": 123
}
],
"obligations": [{ "obl_type": "<string>" }],
"clauses": [{ "clause_type": "<string>" }]
}
] }
headers = {
"x-client": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "OK",
"gu_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_message": "<string>"
}Leases
Insert/update lease records (async)
PUT
/
v1
/
leasemgmt
/
batch
/
leases
Insert/update lease records (async)
curl --request PUT \
--url https://api.tangoanalytics.com/v1/leasemgmt/batch/leases \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>' \
--data '
{
"records": [
{
"lease_id": "<string>",
"lease_number": "<string>",
"country": "<string>",
"brand_id": "<string>",
"legal_entity": "<string>",
"lease_type_code": "<string>",
"lease_financials_group": "<string>",
"lease_acct_classification": "<string>",
"disposition_type": "<string>",
"lease_portfolio_type": "<string>",
"currency_code": "<string>",
"tenancy_type": "<string>",
"area_measure": "<string>",
"rent_prorate_method": "<string>",
"term_status": "<string>",
"options": [
{}
],
"contacts": [
{}
],
"recurring_costs": [
{}
],
"allocations": [
{
"alloc_supplier_site_number": "<string>",
"allocation_percentage": 123
}
],
"obligations": [
{
"obl_type": "<string>"
}
],
"clauses": [
{
"clause_type": "<string>"
}
]
}
]
}
'const options = {
method: 'PUT',
headers: {
'x-client': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
records: [
{
lease_id: '<string>',
lease_number: '<string>',
country: '<string>',
brand_id: '<string>',
legal_entity: '<string>',
lease_type_code: '<string>',
lease_financials_group: '<string>',
lease_acct_classification: '<string>',
disposition_type: '<string>',
lease_portfolio_type: '<string>',
currency_code: '<string>',
tenancy_type: '<string>',
area_measure: '<string>',
rent_prorate_method: '<string>',
term_status: '<string>',
options: [{}],
contacts: [{}],
recurring_costs: [{}],
allocations: [{alloc_supplier_site_number: '<string>', allocation_percentage: 123}],
obligations: [{obl_type: '<string>'}],
clauses: [{clause_type: '<string>'}]
}
]
})
};
fetch('https://api.tangoanalytics.com/v1/leasemgmt/batch/leases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/leasemgmt/batch/leases"
payload = { "records": [
{
"lease_id": "<string>",
"lease_number": "<string>",
"country": "<string>",
"brand_id": "<string>",
"legal_entity": "<string>",
"lease_type_code": "<string>",
"lease_financials_group": "<string>",
"lease_acct_classification": "<string>",
"disposition_type": "<string>",
"lease_portfolio_type": "<string>",
"currency_code": "<string>",
"tenancy_type": "<string>",
"area_measure": "<string>",
"rent_prorate_method": "<string>",
"term_status": "<string>",
"options": [{}],
"contacts": [{}],
"recurring_costs": [{}],
"allocations": [
{
"alloc_supplier_site_number": "<string>",
"allocation_percentage": 123
}
],
"obligations": [{ "obl_type": "<string>" }],
"clauses": [{ "clause_type": "<string>" }]
}
] }
headers = {
"x-client": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "OK",
"gu_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_message": "<string>"
}Body
application/json
Show child attributes
Show child attributes

