Skip to main content
Answer

Create Shared Inbox - Zapier

  • December 29, 2023
  • 1 reply
  • 53 views

Nathan

Hey if anyone knows how to fix this I would greatly appreciate the help! 

I’m trying to automate our client onboarding process to create a Front inbox for each client we have. In Zapier (that’s where all of our automation/apis/onboarding stuff is stored) I am doing an API Request (Beta) in Front trying to create the inbox. Below is a screenshot of how it’s currently set up:

 

When I run this I get back the following:
{"_error":{"status":400,"title":"Bad request","message":"Body did not satisfy requirements","details":["body.name: missing"]}}

Can anyone help me get this error resolved so that it recognizes the name I’m trying to give it? Thanks so much!

Best answer by jason

Hi Nathan, This should be ab easy fix - just change the way you’ve set your Additional Request Headers to look like the following:

 

This means the header with the key “Content-Type” has the value “application/json”. In your previous version, you were sending two headers with values-only and no key, which was causing the API to not know how to handle them. 

 

Let us know if you have questions!

1 reply

jason
Forum|alt.badge.img+8
  • Fronteer
  • Answer
  • December 29, 2023

Hi Nathan, This should be ab easy fix - just change the way you’ve set your Additional Request Headers to look like the following:

 

This means the header with the key “Content-Type” has the value “application/json”. In your previous version, you were sending two headers with values-only and no key, which was causing the API to not know how to handle them. 

 

Let us know if you have questions!