Trialmile docs

Set Role

POST
/admin/users/setRole

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

id*string
Length1 <= length
role*string

Value in

  • "user"
  • "admin"

Response Body

application/json

curl -X POST "https://example.com/admin/users/setRole" \  -H "Content-Type: application/json" \  -d '{    "id": "string",    "role": "user"  }'
null