Porovnat verze

Klíč

  • Tento řádek byl přidán.
  • Tento řádek byl odstraněn.
  • Formátování bylo změněno.

...

To change the pasword.

Request

  • Urn:              /api/passwd

...

titlePožadavek

...

  • Method:      POST
  • Request header:  Cookie: session  - actual session value.
  • Request content: json
Blok kódu
titleJson 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

Blok kódu
titleExample
{
      "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: -