Edit CDR Options (v2.0)

Edit the enablement status of CDR options, such as fuzzy search.

Note: This documentation applies to API version 2.0.

Request URL

POST {base_url}/{api_path}/cdr/updateoption?access_token={access_token}

Request parameters

Parameter Required Type Description
enb_new_cdr_fuzzy_search Yes Integer Whether to search for the fuzzy equivalent for the phone number when querying CDRs generated on 37.21.0.117 or later.

Valid value:

  • 0: Disable
  • 1: Enable

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.

Examples

Request example

POST /openapi/v2.0/cdr/updateoption?access_token=MVbQu2Fpe1DLOwaYJtAIwAJmWthfPTP8 HTTP/1.1 
Host: 192.168.5.150:8088
Content-Type:  application/json
{
  "enb_fuzzy_search": 1
}

Response example

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