# Can I use pm.sendrequest for a PUT call?

**URL:** <https://community.postman.com/t/can-i-use-pm-sendrequest-for-a-put-call/1676>\
**Category:** Help Hub\
**Tags:** method, pmsendrequest\
**Created:** [May 22, 2018, 9:10pm UTC](https://community.postman.com/t/can-i-use-pm-sendrequest-for-a-put-call/1676 "2018-05-22T21:10:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grant.prichard](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/grant.prichard/32/435_2.png) [@grant.prichard](https://community.postman.com/u/grant.prichard)\
**Post date:** [May 22, 2018, 9:10pm UTC](https://community.postman.com/t/can-i-use-pm-sendrequest-for-a-put-call/1676/1 "2018-05-22T21:10:36Z")

</div>

I am trying to update user info using a PUT call that is a condition of another value coming back null or not. basically using

```auto
if{value === null}
    pm.sendrequest({
    url: "url.com/userUpdate"
    method: PUT
    body: {
    mode: 'raw'
    raw: JSON.stringify(
    {
    key0: "value0"
    key1: "value1"
    key2: "value2"
    key3: "value3"
    key4: "value4"
    key5: "value5"
    })
}
}, function(err, response){
    if(err)
    throw err;
    });
}

```

Am I doing something wrong, or does this not support PUT calls?

Thanks!

---

<div class="post-metadata">

**Author:** ![kunagpal](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kunagpal/32/9_2.png) [@kunagpal](https://community.postman.com/u/kunagpal)\
**Post date:** [May 23, 2018, 7:12pm UTC](https://community.postman.com/t/can-i-use-pm-sendrequest-for-a-put-call/1676/2 "2018-05-23T19:12:18Z")

</div>

@grant.prichard It looks like you’re trying to use `pm.sendrequest` (all lowercase), which is incorrect. Could you switch to `pm.sendRequest` and confirm that the request works correctly?
