Update a teammate

POST https://api.tamio.com/v2/teammates/update/{uuid}

Updates an existing teammate's profile, role, and permissions. When role is custom, the permissions object is required.

Path Parameters

uuid string*

UUID of the teammate to update.

Body Parameters

name string*

First name.

last_name string

Last name.

role string*

Predefined role or custom for granular permissions.

accountantdevelopermarketerguestfulfilmentadministrator
country string*

Country code.

permissions Permissions

Responses

200 Teammate updated

Teammate updated

status integer
teammate Teammate
400 Validation or business-logic error
401 Missing or invalid API key
/teammates/update/{uuid}
1const response = await fetch("https://api.tamio.com/v2/teammates/update/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "teammate": {
    "id": "string",
    "object": "teammate",
    "email": "string",
    "name": "string",
    "last_name": "string",
    "country": "string",
    "last_login": 0,
    "role": "string",
    "verified": false,
    "permissions": {}
  }
}