Api::V1::UsersController API

Users

Delete user

DELETE /api/v1/users/:id

Parameters

Name Description
id My id
token token

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

DELETE /api/v1/users/190

Body

{"token":"foobar187"}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE
Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY
Content-Type: application/json; charset=utf-8
ETag: W/"5130541e8a16beeddbe4e96339ce0196"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 47d0cdaf-6210-410e-a75e-7ede32fe1811
X-Runtime: 0.024780
Content-Length: 867

Status

200 OK

Body

{
  "user": {
    "id": 190,
    "display_name": "John D.",
    "first_name": "John",
    "last_name": "Doe",
    "roles": [

    ],
    "about": null,
    "avatar_url": null,
    "user_type": "public",
    "partner": null,
    "engaged": false,
    "unread_count": 0,
    "permissions": {
      "outing": {
        "creation": false
      }
    },
    "interests": [

    ],
    "anonymous": false,
    "uuid": "190",
    "feature_flags": {
      "organization_admin": false
    },
    "token": "foobar187",
    "email": "user187@mail.com-2022-06-02 17:16:47",
    "has_password": false,
    "firebase_properties": {
      "ActionZoneDep": "not_set",
      "ActionZoneCP": "not_set",
      "Goal": "no_set",
      "Interests": "none"
    },
    "goal": null,
    "phone": "+33600000186-2022-06-02 17:16:47",
    "travel_distance": 10,
    "birthday": null,
    "stats": {
      "tour_count": 0,
      "encounter_count": 0,
      "entourage_count": 0,
      "actions_count": 0,
      "ask_for_help_creation_count": 0,
      "contribution_creation_count": 0,
      "events_count": 0,
      "good_waves_participation": false
    },
    "organization": null,
    "address": null,
    "address_2": null
  }
}