Skip to main content
PATCH
/
api
/
v1
/
business
/
members
/
{userId}
Change a member's role
curl --request PATCH \
  --url http://localhost:3001/api/v1/business/members/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "email must be an email",
    "statusCode": 400,
    "errors": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Axra-Business-Id
string

Active business context

Path Parameters

userId
string
required

Body

application/json

The body is of type object.

Response

Bad request

success
boolean
required
Example:

false

error
object
required