teamRole accepts only admin, member, and guest. projectAccessMode accepts mapped (initialize access from existing projects in the team) and none (do not initialize project access). Existing active members, pending members, and owners are not overwritten.curl --location 'https://api.apidog.com/v1/team-access-grants?locale=' \
--header 'X-Project-Id;' \
--header 'X-Client-Version;' \
--header 'X-Device-Id;' \
--header 'X-Branch-Id;' \
--header 'X-Apidog-Api-Version: 2024-03-28' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"teamId": 41,
"email": "member@example.com",
"teamRole": "admin",
"projectAccessMode": "mapped"
}'{
"success": true,
"data": {
"status": "granted",
"teamId": 41,
"email": "member@example.com",
"userId": 101,
"teamRole": "admin",
"projectAccessMode": "mapped",
"projectAccessCreatedCount": 3,
"projectAccessUpdatedCount": 0,
"projectAccessDeletedCount": 0,
"teamRoleChanged": true,
"projectAccessChanged": true
}
}