Skip to main content
PATCH
/
api
/
v1
/
teams
/
members
/
role
Update member role
curl --request PATCH \
  --url https://neo.api.projectdiscovery.io/api/v1/teams/members/role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "role": "admin"
}
'
{
  "member": {
    "email": "jsmith@example.com",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "invited_at": "2023-11-07T05:31:56Z",
    "role": "admin",
    "status": "pending",
    "accepted_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "invited_by": "jsmith@example.com",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.neo.projectdiscovery.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT authentication token

Body

application/json
email
string<email>
required

Email of the member to update

role
enum<string>
required

New role for the member

Available options:
admin,
member,
viewer

Response

Member role updated

member
object
required