Skip to content
Discussion options

You must be logged in to vote

It was my bad I am making incorrect JSON body, device is an object and not an array of objects, by mistake I have made device as array and inside that I put device object.

With below Update it works fine:
PATCH: {{Hostname}}:59881/api/v2/device

Body I have set to RAW : JSON which looks as below:

[
  {
    "apiVersion": "v2",
    "device":
        {
            "name": "Temp-Device01",
            "description": "Test",
            "adminState": "LOCKED",
            "operatingState": "UP"
        }
  }
]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@satyam1990
Comment options

Answer selected by satyam1990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant