I’m encountering an issue when attempting to create a new client in the Mindbody API through Make. Despite providing the required fields, I receive a 400 Bad Request
response with the error:
{“Error”:{“Message”:“Request was poorly formatted.”,“Code”:“MissingRequiredFields”}}
{
“FirstName”: "
“LastName”: “,”,
“Email”: "
“MobilePhone”: "
“City”: "
“State”: “”,
“Country”: “”,
“Location”: “”,
“LeadChannelId”:
“IsProspect”: true,
“ProspectStage”: {
“Active”: true,
“Description”: “New Lead”,
"
},
“SendAccountEmails”: true,
“SendPromotionalEmails”: true,
“SendScheduleEmails”: true,
“HomeLocation”: "{
“ReferredBy”: “SEO”
}
- LastName Field: The error suggests that there is a formatting issue or a missing required field. In particular, the
LastName
is currently set as","
. This could be interpreted as missing or incorrectly formatted by the API. - Missing Fields: The error message
MissingRequiredFields
suggests that the API expects specific fields that might be missing or incorrectly named. TheCity
field, for example, is empty in theHomeLocation
section of the payload.
Next Steps:
- Review Required Fields: Mindbody may require more fields or stricter formatting for certain fields, such as
LastName
,City
, orHomeLocation
. I need to verify the exact required fields for creating a client. - Ensure Data Format: The
HomeLocation
field seems to contain improperly formatted data. Specifically, theCity
field withinHomeLocation
is empty, which could be one of the missing fields. - Debug the Request: I will try sending a simpler request with only the required fields (
FirstName
,LastName
,Email
, etc.) to determine if the error is caused by missing optional fields.
Questions for the Community:
-
Has anyone encountered this issue when working with the Mindbody API in Make or Integromat? How did you resolve it?
-
Are there any specific required fields for the client creation endpoint in the Mindbody API that I might be missing?
-
Is there a way to better debug the request in Make, especially for ensuring that dynamic data (e.g.,
2.Location
,2.City
) is correctly mapped?
I’d appreciate any advice or solutions!