Description
You have to call this method when you want to delete an existing user in DRUID.
Please, read first https://dru-id.com/developers/apis/oauth-2/ to learn about Oauth2 protocol and the meaning of each token, and https://dru-id.com/developers/apis/oauth-2/obtain-challenge_code-token to know how to obtain the token needed to perform this operation.
Scope needed for obtain token is delete
Warning! Auchtung!
This operation can not be undone
This method is not done on behalf of the user, so you don´t need to use access token, so user is not logged in your side to perform deletion, which implies that any error in the programming will result in the elimination of a bunch of users that will never be recovered.
Endpoint URL:
POST https://{your-endpoint-domain.com}/activityid/v1/user/delete
Request parameters
Parameter | Description | Type | Required |
---|---|---|---|
Authorization | Bearer ${challenge_code_token}
Literal text Bearer followed by challenge_code_token that is the token obtained from /oauth2/token endpoint | string | yes |
Content-Type | application/son | string | yes |
Accept | application/son | string | yes |
From | Id of the entry point | string | yes |
Accept-Language | Language of this request | Locale | no |
Query string parameters
Parameter | Description | Type | Required |
---|---|---|---|
code_verifier | The code verifier for the PKCE request, that the app originally generated before the authorization request, as defined in … | string | yes |
Request example
Parameter | Description | Type | Required | Value |
---|---|---|---|---|
actor.id | app_id of the application you are using to log user | string | yes | app id |
actor.objectType | Type of the object which represents the actor. | string | yes | ‘application’ |
verb | Verb used for create user | string | yes | ‘create’ |
object.objectType | ObjectType represents the user | string | yes | ‘user’ |
object.objectId | User identifier. More info about user identifiers User Info | string | yes | user object id |
source.id | Type of device doing the activity | string | yes | ‘unknown’ | ‘pc’ | ‘mobile’ | ‘tablet’ | ‘game_console’ | ‘itv’ |
source.objectType | Type of source | string | yes | ‘device’ |