Update My Function Keys

Reorders or updates the function key list of the current user.

Request URL

PUT {base_url}/uc-cconfig/api/v1/users/record-function-keys

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String The access token used for authentication.

Format: Bearer {access_token}.

x-tenant-code Yes String The tenant name.
Note: You can obtain tenant name using the Query Tenants interface.
Body parameters
Parameter Required Type Description
functionKeys No Object<Function_Key_List> The function key list input. Omitting this parameter keeps the original list, and an empty list clears all keys.
Function_Key_List
Parameter Required Type Description
items No Array<Function_Key_Item> The list of function keys.
Function_Key_Item
Parameter Type Description
keyType String

The type of the function key:

Valid value:

  • n_a: A placeholder key, which has no actual function.
  • line: An account key, which is valid only for IP phones.
  • blf: A BLF key, which monitors the extension status of the monitored object.
  • speed_dial: A speed dial key, which quickly dials a specified number.
  • check_voicemail: A voicemail key.
  • park_retrieve: A park/retrieve key.
  • intercom: An intercom key.
  • dtmf: A DTMF key.
  • agent_login_logout: An agent login/logout key.
  • agent_pause_unpause: An agent pause/unpause key.
  • call_forward: A call forward key, which is valid only for IP phones.
  • action_url: An Action URL key, which is valid only for IP phones.
value String The value of the function key. The maximum length is 128 characters.
label String The display label of the function key. The maximum length is 128 characters.
isDefaultLabel Integer

Whether the label is the default label:

Valid value:

  • 0: Generated by the system.
  • 1: Customized by the user.
valueType String

The value type of the function key:

Valid value:

  • extension: The BLF monitored object is an extension.
  • feature_code: The BLF monitored object is a feature code.

An empty string indicates that the value type is not specified.

Response parameters

Parameter Type Description
requestId String The unique ID of the request, which can be used to quickly locate the request.
code String The HTTP status code of the request.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
message String The status message of the request.
detailMessage String The detailed error information.

When the request is successful, this parameter returns empty.

result Object<Function_Key_List_Result> The updated function key list.
Function_Key_List_Result
Parameter Type Description
functionKeys Array<Function_Key_Item> The updated function key list of the user.

Example

Request example

PUT /uc-cconfig/api/v1/users/record-function-keys HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnI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JDiyYbOlRKDcq570kDQI4BrYCX1sIjACnUHiyvd_7qxK9rNcihnXgbTOC2sEvEJJDwdudoNBENZgH-tKV7wR_8jpaKxa6Djkf_x1sA
x-tenant-code: jint
Content-Type: application/json
{
  "functionKeys": {
    "items": [
      {
        "keyType": "blf",
        "value": "1001",
        "label": "BLF 1001",
        "isDefaultLabel": 1,
        "valueType": "extension"
      }
    ]
  }
}

Response example

HTTP/1.1 200 OK
{
  "requestId": "c9ffad9ba1f8fc6938d938b75ca7d2f3",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "functionKeys": [
      {
        "keyType": "blf",
        "value": "1001",
        "label": "BLF 1001",
        "isDefaultLabel": 1,
        "valueType": "extension"
      }
    ]
  }
}