not able to delete response from a survey. getting unauthorized error even after passing valid token | Community
Skip to main content
Answered

not able to delete response from a survey. getting unauthorized error even after passing valid token


  • Explorer
  • 4 replies

im trying to delete response from a form, but im getting unauthorized error. the token has read / write access to response

Best answer by Liz

Hi @Viki Ah yes, that would be it! You’ll need to be the owner of the form in order to delete the form itself or the responses. 

View original

10 replies

Mariana
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 679 replies
  • June 2, 2021

Hey @Viki. Welcome to the Typeform Community!

 

Do you mind sharing a screenshot showing what you see on your end? This way, we'll be able to troubleshoot accordingly. =) 


  • Author
  • Explorer
  • 4 replies
  • June 2, 2021

As stated above im able to view the response but not delete the response. the token has read and write permission


Mariana
Ex–Typefomer
Forum|alt.badge.img+5
  • Ex–Typefomer
  • 679 replies
  • June 2, 2021

Thank you! I'll ping @Liz to see if she can help with that =) 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • June 2, 2021

Hi @Viki Would you mind sharing the call you’re making? Additionally, are you using the token from the account owner (versus a member on the account)? 


  • Author
  • Explorer
  • 4 replies
  • June 3, 2021

Hi @Liz, Thanks for helping,
this is the command i’m using 

curl --request DELETE 'https://api.typeform.com/forms/Cis1Ze/responses?included_response_ids=3wtzur3hdtp4u3wtgwcysk6563fkggg4' \
 

i have one owner account and under that i have generated 3 tokens and using one token for this operation.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • June 3, 2021

Hi @Viki Thank you! I removed the auth bearer for your safety, just so you know. :grinning:

Do you happen to have anything else in the request headers? Every now and then, I’ve seen the request fail when there are other parameters, such as file type. 

Thanks again!


  • Author
  • Explorer
  • 4 replies
  • June 3, 2021

Hi @Liz i’m not passing any other parameters


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • June 3, 2021

Hi @Viki From the looks of it, everything should be working correctly. I would suggest contacting our support team here from your account email and requesting the technical team. They can test the call and see any errors that may be arising for you!


  • Author
  • Explorer
  • 4 replies
  • June 4, 2021

Hi @Liz. my bad, just figured it out im not the owner of the form, one of the member in our team is the owner of the form. will that be a reason for this?


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14840 replies
  • Answer
  • June 4, 2021

Hi @Viki Ah yes, that would be it! You’ll need to be the owner of the form in order to delete the form itself or the responses. 


Reply