# V8 platform.api.pacth/put not working with remote HTTP service

**URL:** <https://community.dreamfactory.com/t/v8-platform-api-pacth-put-not-working-with-remote-http-service/3347>\
**Category:** Server-Side Scripting\
**Created:** [October 19, 2016, 5:14pm UTC](https://community.dreamfactory.com/t/v8-platform-api-pacth-put-not-working-with-remote-http-service/3347 "2016-10-19T17:14:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)\
**Post date:** [October 19, 2016, 5:14pm UTC](https://community.dreamfactory.com/t/v8-platform-api-pacth-put-not-working-with-remote-http-service/3347/1 "2016-10-19T17:14:05Z")

</div>

ENV: DF 2.3.1, installation VM Bitnami.

I created an event script in my message table, and created an HTTP-api my service, but to run a resquest for my HTTP service DF removing this url parameters written into the script.

**Service config**

```auto
remoteURl: myUrl

params
 auth_token: token Outbond: true CacheKey: true
 agent: {user.display_name} Outbond: true CacheKey: true

Headers
 Content-Type: application/json

```

**Script**

```auto
var payload = {"attr": value};
platform.api.patch('my-api/registro?user_id=id', payload);

```

**Output my event script**

```auto
Url: 'my-api/resgistro?auth_token=token&agent=display_name' // user_id is removed for DF

```

---

<div class="post-metadata">

**Author:** ![Sasquatch](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/sasquatch/32/900_2.png) [@Sasquatch](https://community.dreamfactory.com/u/Sasquatch)\
**Post date:** [October 22, 2016, 1:37pm UTC](https://community.dreamfactory.com/t/v8-platform-api-pacth-put-not-working-with-remote-http-service/3347/2 "2016-10-22T13:37:24Z")

</div>

@paulo.hgf1408 If I’m understanding correctly you’ve connected your web service inside DreamFactory as remote web service/HTTP service and now you are scripting on the service a PATCH on the DF service? In theory this should work. As a test can you do the following? Try writing a script to call the web service not as a DreamFactory service e.g. the ‘my-api’ service but call the service directly using the full URL of service. This may have to be not an event script but a scripted service call. I’m curious, does this work?

---

<div class="post-metadata">

**Author:** ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)\
**Post date:** [October 25, 2016, 5:33pm UTC](https://community.dreamfactory.com/t/v8-platform-api-pacth-put-not-working-with-remote-http-service/3347/3 "2016-10-25T17:33:50Z")

</div>

Hi @Sasquatch!  
I tried your suggestion, to spend full URL in my request and it worked, but the problem is the service + platform.api when will do replace the URL params.

---

<div class="post-metadata">

**Author:** ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)\
**Post date:** [October 25, 2016, 5:39pm UTC](https://community.dreamfactory.com/t/v8-platform-api-pacth-put-not-working-with-remote-http-service/3347/4 "2016-10-25T17:39:18Z")

</div>

Hi @Sasquatch!  
more an afterthought the platform.api this passing only multipart / form-data even setting the header payload is passed as form-data.

Sorry my Inglês is terrible. and I am using google translate
