@silfa718 Here you go… This example is with Synology Surveillance station.
You first connect using user/passwd. In the JSON payload you get a token, that has to be used for the next action. Doing this is in “pure” yaml in Home Assistant is probably doable. Mush more difficult, I think!
[{"id":"7c43c3c7.7a0a5c","type":"inject","z":"80238d0f.ea9f2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":120,"wires":[["e84577e5.50c6e8"]]},{"id":"e84577e5.50c6e8","type":"http request","z":"80238d0f.ea9f2","name":"Login","method":"GET","ret":"txt","paytoqs":false,"url":"http://IP_SYNO:5000/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=3&account=USER&passwd=PASSWORD&session=SurveillanceStation&format=sid","tls":"","persist":false,"proxy":"","authType":"","x":270,"y":120,"wires":[["22f6376e.be9ca8"]]},{"id":"22f6376e.be9ca8","type":"json","z":"80238d0f.ea9f2","name":"","property":"payload","action":"","pretty":true,"x":390,"y":120,"wires":[["cd401a10.193f88"]]},{"id":"cd401a10.193f88","type":"change","z":"80238d0f.ea9f2","name":"Save sid","rules":[{"t":"set","p":"sid","pt":"flow","to":"payload.data.sid","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":120,"wires":[["15880df5.6726e2"]]},{"id":"15880df5.6726e2","type":"template","z":"80238d0f.ea9f2","name":"Motion Disable","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"http://IP_SYNO:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera.Event&method=MDParamSave&source=-1&camId=3&version=1&_sid={{flow.sid}}\n","output":"str","x":260,"y":180,"wires":[["c645343d.545a08"]]},{"id":"c645343d.545a08","type":"http request","z":"80238d0f.ea9f2","name":"API","method":"GET","ret":"txt","paytoqs":false,"url":"{{{payload}}}","tls":"","persist":false,"proxy":"","authType":"","x":410,"y":180,"wires":[["3831e9d8.c141a6"]]},{"id":"3831e9d8.c141a6","type":"http request","z":"80238d0f.ea9f2","name":"Logout","method":"GET","ret":"txt","paytoqs":false,"url":"http://IP_SYNO:5000/webapi/auth.cgi?api=SYNO.API.Auth&method=Logout&version=3&session=SurveillanceStation&_sid={{flow.sid}}","tls":"","persist":false,"proxy":"","authType":"","x":540,"y":180,"wires":[[]]}]