Question

(RTBF) Delete responses API 502 Bad Gateway Error response

  • 19 March 2021
  • 9 replies
  • 246 views

Hi ,

Trying to delete the responses using the 

 

(RTBF) Delete responses

DELETE

https://api.typeform.com/rtbf/{account_id}/responses

Passed array of email in the body.

but receiving 

502Bad Gateway error code.

Can anyone help on this.

 

 

 


9 replies

Hi ,

 

Trying to call the (RTBF) Retrieve job status with job Id which got as response from (RTBF) Delete responses., but it is throwing exception 

Endpoint not found

404 Not Found Exception , Can anyone help on this

Userlevel 7
Badge +5

Hi - thanks for stopping by! The Form ID “rtbf” seems a bit short, which is most likely causing the issue. Usually our Form IDs are a few characters longer. Would you mind checking your form ID to see if that happens to be the issue? :grinning:

Userlevel 7
Badge +5

Hi again  - disregard my past comment! I see the call you’re making now. :) 

Would you mind sending the entire call you’re making? 

Hi

Can you please refer to this link 
https://developer.typeform.com/responses/reference/rtbf-delete-responses/

There is no form id to pass here.

Please check below request how we are passing 

curl --location --request DELETE 'https://api.typeform.com/rtbf/01F078BCWGGXTV3VG5VW4GAJNK/responses' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ourtoken' \
--header 'Cookie: __cfduid=d15e0f31cab796688e0da343915b666d31616066963; device_view=full' \
--data-raw '[
"test@test.com"
]'

 

Userlevel 7
Badge +5

Hi @adaptors.india thank you! Can I have you try removing: __cfduid=d15e0f31cab796688e0da343915b666d31616066963; device_view=full' \ ?

Hi @Liz 

that cookie was added by postman by default . We tried to remove but it is in hidden.

Other api’s are working except this api.

 

{"code":"NOT_FOUND","description":"Endpoint not found"}

 

Userlevel 7
Badge +5

Hi @adaptors.india apologies for my delay here! Are you still experiencing the issue? If so, would you mind removing any code that isn’t relevant to the call?

Hi,

I am also trying to use this delete responses API. However, it requires the parameter account_ID. Where does one find their account ID in the UI?

Userlevel 7
Badge +5

Hi @Hannah B I’ve responded in your thread. :grinning:

Reply