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:
|
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
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"
}