Operation

post /data/npr/asonSwitchs/{cointoIdList}/switchCmd
switchCmd (switchCmd : /data/npr/asonSwitchs/{cointoIdList}/switchCmd)
the switchcmd will operate on the attribute of force main,force spare, manual main, manual spare and release

Path parameters

Name

IsRequired

Description

Enum

cointoIdList required Can retrieve cointoIdList using /data/npr/asonSwitchs ---
Request body

Name

IsRequired

Description

Data Type

Enum

body optional request ServletWebRequest ---
body2 optional session HttpSession ---
body3 optional form String ---

Return type
  • NprResponse
  • Responses

    Response Messages

    Schema

    200success NprResponse
    201Created ---
    401Unauthorized ---
    403Forbidden ---
    404Not Found ---
    Consumes
    This API call consumes the following media types via the Content-Type request header:
    • application/json
    Example Request Data

    Request for force (main/spare),manual(main,spare)--------> /data/npr/asonSwitchs/2223,2220/switchCmd Request for force(per direction),manual(per direction)---> /data/npr/asonSwitchs/2223/switchCmd

    Produces
    This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
    • text/xml
    • application/json
    Example Response Data
    { "ok": true, "id": "2576918243249865", "responseMessage": "Could not read document: Unexpected character ('R' (code 82)): was expecting comma to separate OBJECT entries\n at [Source: java.io.PushbackInputStream@1ebb432d; line: 1, column: 140]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('R' (code 82)): was expecting comma to separate OBJECT entries\n at [Source: java.io.PushbackInputStream@1ebb432d; line: 1, column: 140]", "responseList": null, "HTTPResponse": 200, "httpresponse": 200 }

    External Docs
    See Also :

    NprResponse

    Name

    Type

    Description

    Enum

    HTTPResponse Integer integer --- ---
    ok Boolean boolean The Npr response is created successfully ---
    id String string The Response id ---
    responseMessage String string Response message for the request ---
    responseList array[Object] object The List of response ---