Edit an LDAP Node

Edit an LDAP node.

Request URL

POST {base_url}/{api_path}/ldap_nodes/update?access_token={access_token}

Request parameters

Parameter Required Type Description
id Yes Integer The unique ID of an LDAP node.
Note: You can query LDAP node ID using the Query LDAP Node List interface.
enable No Integer Whether to enable the LDAP node.

Valid value:

  • 0: Disabled.
  • 1: Enabled.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

Example

Request example

POST /openapi/v1.0/ldap_nodes/update?access_token=KHlhDSbuZ75OsFLDUbZHdkE5cIQEcIlK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
    "id": 2,
    "enable": 0
}

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS"
}