# ApplyTag Input could not be converted to a valid request

**URL:** <https://integration.keap.com/t/applytag-input-could-not-be-converted-to-a-valid-request/82504>\
**Category:** API Q&A\
**Created:** [March 5, 2021, 5:19pm UTC](https://integration.keap.com/t/applytag-input-could-not-be-converted-to-a-valid-request/82504 "2021-03-05T17:19:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Orefice](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@Max\_Orefice](https://integration.keap.com/u/Max_Orefice)\
**Post date:** [March 5, 2021, 5:19pm UTC](https://integration.keap.com/t/applytag-input-could-not-be-converted-to-a-valid-request/82504/1 "2021-03-05T17:19:09Z")

</div>

I keep getting this error “Input could not be converted to a valid request” while trying to apply a tag to a Contact, I’m using this endpoint:  
[https://api.infusionsoft.com/crm/rest/v1/contacts/6/tags](https://api.infusionsoft.com/crm/rest/v1/contacts/6/tags) (6 is the contact I’m trying to tag)

The json I’m sending is:

{  
“tagId”:“108”, //the tag ID I’m trying to apply  
“ids”:“6”  
}

I’m getting this error both if I try from [https://reqbin.com/](https://reqbin.com/) and from my app (node.js) any idea what could be the problem?  
Thanks

Max

---

<div class="post-metadata">

**Author:** ![TomScott](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/tomscott/32/67_2.png) [@TomScott](https://integration.keap.com/u/TomScott)\
**Post date:** [March 5, 2021, 7:52pm UTC](https://integration.keap.com/t/applytag-input-could-not-be-converted-to-a-valid-request/82504/2 "2021-03-05T19:52:57Z")

</div>

> [@Max\_Orefice](#):
>
> {  
> “tagId”:“108”, //the tag ID I’m trying to apply  
> “ids”:“6”  
> }

That isn’t the correct payload. [Per our documentation on that endpoint](https://developer.infusionsoft.com/docs/rest/#!/Contact/applyTagsToContactIdUsingPOST):

`POST https://api.infusionsoft.com/crm/rest/v1/contacts/6/tags`

`{ "tagIds": [108] }`
