API call to update camera stream settings

I can do a get to see the camera settings for streams by doing

https://milestone/api/rest/v1/cameras/[id]/settings

I want to update the codec setting on the first three stream profiles and I’m hitting a wall why it won’t let me patch against that same call.

What am i doing wrong! Is it from a differnt entry point?

I admit I had to do some trial and error, but I figured how to do this.

When you can do a GET - /api/rest/v1/cameras/{id}/settings/

you can also do a GET- /api/rest/v1/settings/{id}

and on the latter, I learned, you can also do PATCH

I did a GET took the body parts from the response to do a PATCH

I found that this works in my example

{

“stream”: [

   {

       "codec": "h264",

       "FPS": "11.0"

   }

]

}

If updating the first two streams this work

{

“stream”: [

   {

       "codec": "jpeg",

       "FPS": "10.0"

   },

     {

       "codec": "h264",

       "FPS": "11.0"

   }

]

}

See it in another way:

thank you for this, I was close, just not in the right spot!