zato.security.basic-auth.change-password

Overview

Changes the password of an already existing HTTP Basic Auth security definition.

  • List response: No
  • SOAP action: zato.security.basic-auth.change-password
  • SOAP URL path: /zato/soap
  • JSON URL path: /zato/json/zato.security.basic-auth.change-password
  • WSDL: Click here

Request parameters

Name Datatype Optional Notes
id int ID of the definition
password1 string Yes Password in clear-text
password2 string Yes Password, repeated
Changed in Zato 2.0: Please, see the changelog

Response parameters

(None)

SOAP example

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
     xmlns:zato="https://zato.io/ns/20130518">
   <soapenv:Body>
      <zato:zato_security_basic_auth_change_password_request>
         <zato:id>1</zato:id>
         <zato:password1>405612a3d50f4465b90aceff1e76488f</zato:password1>
         <zato:password2>405612a3d50f4465b90aceff1e76488f</zato:password2>
      </zato:zato_security_basic_auth_change_password_request>
   </soapenv:Body>
</soapenv:Envelope>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="https://zato.io/ns/20130518">
    <soap:Body>
        <zato_security_basic_auth_change_password_response
                xmlns="https://zato.io/ns/20130518">
            <zato_env>
                <cid>K209461587951041227977918060607031043390</cid>
                <result>ZATO_OK</result>
            </zato_env>
        </zato_security_basic_auth_change_password_response>
    </soap:Body>
</soap:Envelope>

JSON example

{
    "id": 1
}

{
  "zato_env": {
    "details": "",
    "result": "ZATO_OK",
    "cid": "K209461587951041227977918060607031043390"
  }
}