Theta
  1. Entity Users
Theta
  • Start your Apidog journey
  • Authentication
    • Registration
      POST
    • Verify email
      GET
    • Login
      POST
    • Refresh token
      POST
    • Forgot password
      POST
    • Verfy OTP
      POST
    • Change password
      PATCH
    • Logout
      POST
  • User
    • Get my profile
      GET
    • Update my profile
      PUT
    • Change my password
      PATCH
    • Delete my account
      DELETE
    • Reactive my account
      POST
    • Get my followers
      GET
    • Get my following
      GET
    • Follow User
      POST
    • Unfollow User
      POST
    • Get my entities
      GET
    • Get enrolled entities
      GET
    • Get users
      GET
    • Get user
      GET
  • Entity
    • Create entity
      POST
    • Get all entities
      GET
    • Get entity by ID
      GET
    • Get entity by invite code
      GET
    • Update entity
      PUT
    • Delete entity
      DELETE
    • Update join status
      PATCH
    • Join entity
      POST
  • Entity Users
    • Get entity users
      GET
    • Change user role
      PATCH
    • Delete entity user
      DELETE
  • Entity Roles
    • Get entity roles
    • Get entity role by id
    • Create entity role
    • Update entity role
    • Delete entity role
  • Inquiry task
    • Get entity's tasks
    • Get task by ID
    • Create inquiry task
    • Update an inquiry task
    • Delete an inquiry task
  • Inquiry problem
    • Get all
    • Get inquiry problem by ID
    • Create a new inquiry problem
    • Update an inquiry problem
    • Delete an inquiry problem
  • URL
    • Get all URLs
    • Get URL by ID
    • Create URL
    • Update URL
    • Delete URL
  1. Entity Users

Change user role

Developing
PATCH
/api/v1/entities/{entityId}/users/{userId}

Request

Path Params

Body Params application/json

Example
{
    "roleId": "string"
}

Responses

🟢200Success
application/json
Body

Example
{
    "status": "string",
    "message": "string",
    "data": {
        "entityUser": {}
    }
}
🟠404Record not found
🟠422validation Error
Previous
Get entity users
Next
Delete entity user
Built with