Skip to main content
PATCH
/
v1
/
user
/
team
/
member
Update Team Member
curl --request PATCH \
  --url https://api.projectdiscovery.io/v1/user/team/member \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "email": "<string>",
  "role": "<string>"
}'
{
  "message": "<string>"
}
Update an existing team member’s role and permissions. This endpoint allows you to modify member access levels without removing and re-adding them, preserving their history and activity within the team.
You must have Admin or Owner permissions to update team member roles. Owners can update any member; Admins cannot update Owner roles.
Cannot Modify Owner Role: The team owner cannot be changed through this endpoint. To transfer ownership, contact support or use the dedicated ownership transfer process.
Downgrading Permissions: When downgrading a member’s role (e.g., Admin to Member), they will immediately lose access to administrative functions. Ensure this doesn’t disrupt ongoing operations.

Permission Impact

  • Upgrading Roles
  • Downgrading Roles
Member → Admin:
  • ✅ Can now manage team settings
  • ✅ Can add/remove members
  • ✅ Can configure integrations
  • ✅ Retains all previous Member permissions
Admin → Owner:
  • ✅ Full administrative control
  • ✅ Can delete team
  • ✅ Can manage billing
  • ⚠️ Only one owner allowed per team

Authorizations

X-API-Key
string
header
required

Headers

X-Team-Id
string

Body

application/json
email
string
required
role
string

Response

Example response

message
string
required