Update a team's name or description. Requires owner or admin role.
PUT https://www.chatzuri.com/api/v1/update-teamteamId — (string, required) The ID of the team to update.name — (string, optional) New team name.description — (string, optional) New team description.const res = await fetch('https://www.chatzuri.com/api/v1/update-team', {
method: 'PUT',
headers: {
Authorization: 'Bearer <Your-Secret-Key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
teamId: '<Your-Team-ID>',
name: 'Acme Corp Renamed',
description: 'Updated description'
})
});
const data = await res.json();
console.log(data); // { success: true }{
"success": true
}How to handle API errors gracefully
If there are any errors during the API request, appropriate HTTP status codes will be returned along with error messages in the response body.
That's it! You should now be able to create a agent using the create API.