Update team member details
curl --request PATCH \
--url https://{your-subdomain}.neetocal.com/api/external/v1/team_members/{team_member_id} \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"email": "oliver@example.com",
"first_name": "Oliver",
"last_name": "Smith",
"time_zone": "Asia/Kolkata",
"organization_role": "Admin"
}
'const options = {
method: 'PATCH',
headers: {
'X-Api-Key': '<x-api-key>',
Accept: '<accept>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'oliver@example.com',
first_name: 'Oliver',
last_name: 'Smith',
time_zone: 'Asia/Kolkata',
organization_role: 'Admin'
})
};
fetch('https://{your-subdomain}.neetocal.com/api/external/v1/team_members/{team_member_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetocal.com/api/external/v1/team_members/{team_member_id}"
payload = {
"email": "oliver@example.com",
"first_name": "Oliver",
"last_name": "Smith",
"time_zone": "Asia/Kolkata",
"organization_role": "Admin"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"team_member": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"time_zone": "<string>",
"profile_image_url": "<string>",
"active": true,
"organization_role": "<string>"
}
}API v1 (deprecated)
Update team member
Update a team member.
PATCH
/
team_members
/
{team_member_id}
Update team member details
curl --request PATCH \
--url https://{your-subdomain}.neetocal.com/api/external/v1/team_members/{team_member_id} \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"email": "oliver@example.com",
"first_name": "Oliver",
"last_name": "Smith",
"time_zone": "Asia/Kolkata",
"organization_role": "Admin"
}
'const options = {
method: 'PATCH',
headers: {
'X-Api-Key': '<x-api-key>',
Accept: '<accept>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'oliver@example.com',
first_name: 'Oliver',
last_name: 'Smith',
time_zone: 'Asia/Kolkata',
organization_role: 'Admin'
})
};
fetch('https://{your-subdomain}.neetocal.com/api/external/v1/team_members/{team_member_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetocal.com/api/external/v1/team_members/{team_member_id}"
payload = {
"email": "oliver@example.com",
"first_name": "Oliver",
"last_name": "Smith",
"time_zone": "Asia/Kolkata",
"organization_role": "Admin"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"team_member": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"time_zone": "<string>",
"profile_image_url": "<string>",
"active": true,
"organization_role": "<string>"
}
}This endpoint is part of API v1, which is deprecated. Please use the v2 API instead.
Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Path Parameters
Id of the team member that you want to update. You can get team_member_id by listing all team members using our List team members API. Here you will see id for each team member.
Example:
"13c02be6-8bd4-4dda-b9e6-07df53feb8a4"
Body
application/json
Response
200 - application/json
OK - Request succeeded