Activate a user profile Added in 8.2.0

POST /_security/profile/_activate

Create or update a user profile on behalf of another user.

application/json

Body Required

Responses

POST /_security/profile/_activate
curl \
 -X POST http://api.example.com/_security/profile/_activate \
 -H "Content-Type: application/json" \
 -d '{"access_token":"string","grant_type":"password","password":"string","username":"string"}'
Request examples
{
  "access_token": "string",
  "grant_type": "password",
  "password": "string",
  "username": "string"
}
Response examples (200)
{
  "uid": "string",
  "user": {
    "email": "string",
    "full_name": "string",
    "realm_name": "string",
    "realm_domain": "string",
    "roles": [
      "string"
    ],
    "username": "string"
  },
  "data": {
    "additionalProperty1": {},
    "additionalProperty2": {}
  },
  "labels": {
    "additionalProperty1": {},
    "additionalProperty2": {}
  },
  "enabled": true,
  "last_synchronized": 42.0,
  "_doc": {
    "_primary_term": 42.0,
    "_seq_no": 42.0
  }
}