Prohlížíte starou verzi této stránky. Zobrazit aktuální verzi.

Porovnat s aktuální Zobrazit historii stránky

« Předchozí Verze 2 Aktuální »

To change the pasword.

Request

  • Urn:              /api/passwd
  • Method:      POST
  • Request header:  Cookie: session  - actual session value.
  • Request content: json
Json schema:
{
      "$schema": "http://json-schema.org/draft-07/schema#",
      "title": "passwd - request",
      "type": "object",
      "properties": {
        "oldPassword": {
          "type": "string"
        },
        "password": {
          "type": "string"
        }
      },
      "required": [
        "oldPassword",
        "password"
      ],
      "additionalProperties": false
}

Meaning of json items: 

  • $.oldPassword:
    Current user password.
    Type: string
    Mandatory.

  • $.password:
    New user password.
    Type: string
    Mandatory

Example
{
      "oldPassword": "1!54.ee44",
      "password": "new44.55ewn"
}

Response

  • Response code:
    • 200 – OK
    • 400 – Error (bad request)
    • 401 – Unauthorized
    • 500 – Server error
    • 512 - Internal application error
  • Response header: Set-Cookie: session  - Actual session value.
  • Response type: -
  • Žádné štítky