AnsweredAssumed Answered

How to delete a user completely?

Question asked by Ian Dela Cruz on May 31, 2019
Latest reply on Dec 2, 2019 by chofer@morainepark.edu

Hi everyone! I created a user (student) using API. I want to delete it using API as well but I keep getting an error "The specified resource does not exist.".

 

Here's the API's I used:

 

API: POST /v1/accounts/{account_id}/users

const data = {
    "user[name]": name,
    "pseudonym[unique_id]": email,
    "pseudonym[sis_user_id]": email,
    "pseudonym[send_confirmation]": true
};

 

API: DELETE /v1/accounts/{account_id}/users/{user_id}

 

Error when calling DELETE API:
{
    "errors": [{
        "message": "The specified resource does not exist."
    }]
}

 

I'm doing this on the test environment. Please help!

Outcomes