# Send PUT request with authantication fom homey

**URL:** <https://community.homey.app/t/send-put-request-with-authantication-fom-homey/75928>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [February 2, 2023, 2:02pm UTC](https://community.homey.app/t/send-put-request-with-authantication-fom-homey/75928 "2023-02-02T14:02:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frickadillus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frickadillus/32/69500_2.png) [@Frickadillus](https://community.homey.app/u/Frickadillus)\
**Post date:** [February 2, 2023, 2:02pm UTC](https://community.homey.app/t/send-put-request-with-authantication-fom-homey/75928/1 "2023-02-02T14:02:38Z")

</div>

Hey,

I’m looking for a way to send a PUT request that requires authentication with a Homey Flow to my Hikvision IP camera.

A working PUT command looks like this: http: **Camera IP here** /PTZCtrl/channels/1/presets/ **Your preset number here** /goto  
_Hikvision does not handle GET request for some reason, only PUT_

The purpose is to change the PTZ position of the camera by adjusting position presets defined in the camera when a PIR sensor is triggered in Homey.

Anyone with an idea how to do this with Homey?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 2, 2023, 2:13pm UTC](https://community.homey.app/t/send-put-request-with-authantication-fom-homey/75928/2 "2023-02-02T14:13:18Z")

</div>

It depends on the sort of authentication it requires, if it works with Basic authentication, you can probably use this:

```auto
http://username:password@cameraip/PTZCtrl/channels/1/presets/Your preset number here/goto

```

Make sure that both `username` and `password` are properly (URL-)encoded. You can use [this page](https://www.urlencoder.org/) for that.

---

<div class="post-metadata">

**Author:** ![Frickadillus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frickadillus/32/69500_2.png) [@Frickadillus](https://community.homey.app/u/Frickadillus)\
**Post date:** [February 2, 2023, 2:48pm UTC](https://community.homey.app/t/send-put-request-with-authantication-fom-homey/75928/3 "2023-02-02T14:48:09Z")

</div>

That worked! Very nice Robert! ⭐

I created a Flow with the Logic → Web request card. Method PUT and URL according to Roberts suggestion.
