PUT /pm-extension-ms/terminal-selection-service/ons

Update ONS numbers for the specific extension number.

To update the ONS numbers related to the specific extension number:
  1. Perform the authentication and login to the API. For more information, see POST /auth/login.

  2. Use PUT /pm-extension-ms/terminal-selection-service/ons to send an HTTP PUT request.

  3. Click Try it Out option.

  4. Set the parameters as listed in the following table.

    Parameter Name

    Sample Value

    Supported Value

    Description

    extensionNumber

    extensionNumber

    string

    Indicates the extension number.
    Note:

    This parameter is mandatory.

    subsystemId

    subsystemId

    integer 32

    Indicates the subsystem ID.
    Note:

    This parameter is mandatory.

  5. Enter the request body parameter values as follows:
    {
      "onsVo": [
        {
          "onsid": "string",
          "onsprefix": "string",
          "onstranslateNo": "string"
        }
      ],
      "info": {
        "reason": "string",
        "parameterList": [
          {
            "fieldName": "string",
            "value": "string",
            "item": "string"
          }
        ],
        "message": "string",
        "component": "string",
        "id": "string"
      }
    }
    The following table describes the request body parameters.

    Parameter Name

    Sample Value

    Description

    >onsVo

    >>onsid

    String

    >>onsprefix

    String

    >>onstranslateNo

    String

    >info

    >>code

    String

    >>fieldName

    String

    >>value

    String

    >>message

    String

    >>reason

    String

    >>component

    String

    >>ok

    Boolean

  6. Click on Execute to generate the request URL.

    Request URL:
    https://<IP_Address>:<PORT>/pm-extension-ms/pm-extension/v1/virtual?subsystemName=1
    The following table lists the expected responses.

    Response Type

    Value

    Schema

    Valid Response

    200 OK

    See 200 OK: PUT /pm-extension-ms/terminal-selection-service/ons

    Error Response

    400 Bad Request

    Not applicable

    401 Authentication Failure

    Not applicable

    403 Forbidden

    Not applicable

    404 Not found

    Not applicable