Skip to main content

Delete a user by ID

DELETE 

/users/:userId

The Remove User request allows you to remove a user from ANSCER ANYA. This request takes in the user's unique ID as a parameter, and will permanently delete the user's account and all associated data from the ANSCER ANYA database.

Request

Path Parameters

    userId stringrequired

    The ID of the user to retrieve, update or delete

Responses

User deleted

Schema
    _id uuid
    name string

    Possible values: >= 3 characters and <= 50 characters

    email email

    Possible values: >= 5 characters and <= 255 characters

    isActive boolean
    role userRoles

    Possible values: [developer, admin, user]

    createdBy object

    The user who created this user

    _id string
    name string
    email email
    updatedBy object

    The user who last updated this user

    _id string
    name string
    email email
    createdAt date-time

    The date and time this user was created

    updatedAt date-time

    The date and time this user was last updated

Loading...