Insert / update / inactivate users (async)
curl --request PUT \
--url https://api.tangoanalytics.com/v1/usermgmt/batch/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>' \
--data '
{
"records": [
{
"user_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"title": "<string>",
"location": "<string>",
"default_brand": "<string>",
"default_country": "<string>",
"brands": [
{
"brand_name": "<string>",
"country": "<string>",
"region": "<string>",
"roles": "<string>",
"entity_security": [
{
"restrictions": [
{
"value": "<string>"
}
]
}
]
}
]
}
]
}
'const options = {
method: 'PUT',
headers: {
'x-client': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
records: [
{
user_name: '<string>',
first_name: '<string>',
last_name: '<string>',
email: 'jsmith@example.com',
title: '<string>',
location: '<string>',
default_brand: '<string>',
default_country: '<string>',
brands: [
{
brand_name: '<string>',
country: '<string>',
region: '<string>',
roles: '<string>',
entity_security: [{restrictions: [{value: '<string>'}]}]
}
]
}
]
})
};
fetch('https://api.tangoanalytics.com/v1/usermgmt/batch/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/usermgmt/batch/users"
payload = { "records": [
{
"user_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"title": "<string>",
"location": "<string>",
"default_brand": "<string>",
"default_country": "<string>",
"brands": [
{
"brand_name": "<string>",
"country": "<string>",
"region": "<string>",
"roles": "<string>",
"entity_security": [{ "restrictions": [{ "value": "<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>"
}User Provisioning
Insert / update / inactivate users (async)
PUT
/
v1
/
usermgmt
/
batch
/
users
Insert / update / inactivate users (async)
curl --request PUT \
--url https://api.tangoanalytics.com/v1/usermgmt/batch/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>' \
--data '
{
"records": [
{
"user_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"title": "<string>",
"location": "<string>",
"default_brand": "<string>",
"default_country": "<string>",
"brands": [
{
"brand_name": "<string>",
"country": "<string>",
"region": "<string>",
"roles": "<string>",
"entity_security": [
{
"restrictions": [
{
"value": "<string>"
}
]
}
]
}
]
}
]
}
'const options = {
method: 'PUT',
headers: {
'x-client': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
records: [
{
user_name: '<string>',
first_name: '<string>',
last_name: '<string>',
email: 'jsmith@example.com',
title: '<string>',
location: '<string>',
default_brand: '<string>',
default_country: '<string>',
brands: [
{
brand_name: '<string>',
country: '<string>',
region: '<string>',
roles: '<string>',
entity_security: [{restrictions: [{value: '<string>'}]}]
}
]
}
]
})
};
fetch('https://api.tangoanalytics.com/v1/usermgmt/batch/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/usermgmt/batch/users"
payload = { "records": [
{
"user_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"title": "<string>",
"location": "<string>",
"default_brand": "<string>",
"default_country": "<string>",
"brands": [
{
"brand_name": "<string>",
"country": "<string>",
"region": "<string>",
"roles": "<string>",
"entity_security": [{ "restrictions": [{ "value": "<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

