Errors · Status 400Bad Request
invalid_param
Invalid parameter
Why it happens
One or more request fields are wrong. invalidParams lists ALL of them at once, with the path and the reason (required, unknown_field, one_of with the allowed list, not_in_catalog with suggestions…).
How to fix
Fix each invalidParams item. Unknown fields are an error on purpose: a bedroom instead of bedrooms must not slip through.
Who answers
the API
Routes that return this error
- GET/v1/geo/cities— Cities
- GET/v1/geo/cities/{cityId}/neighborhoods— A city's neighborhoods
- GET/v1/properties— List the portfolio
- GET/v1/leads— List clients
- GET/v1/matches— The account's opportunities
- GET/v1/partnerships— The team's partnerships
- GET/v1/launches— The city's new developments
- PUT/v1/properties/by-ref/{ref}— Create or update by your code
- POST/v1/properties— Create a property
- PATCH/v1/properties/{propertyId}— Partially update a property
- POST/v1/properties/{propertyId}/status— Change the status
- POST/v1/properties/confirm— Confirm availability in bulk
- PUT/v1/leads/by-ref/{ref}— Create, update or link by your code
- POST/v1/leads— Create a client
- PATCH/v1/leads/{leadId}— Partially update a client
- POST/v1/leads/{leadId}/state— Archive or reactivate
- POST/v1/leads/{leadId}/interactions— Log an interaction
- DELETE/v1/properties/{propertyId}— Move to the trash
- DELETE/v1/leads/{leadId}— Move to the trash
- POST/v1/matches/{matchId}/dismiss— Dismiss an opportunity
- POST/v1/matches/{matchId}/restore— Restore an opportunity
- POST/v1/partnerships/{partnershipId}/status— Move the partnership stage
- GET/v1/captacao/owners— Accepted owners
- POST/v1/captacao/offers/{offerId}/accept— Accept an owner
- GET/v1/events— What changed
- POST/v1/webhooks— Register an endpoint
- PATCH/v1/webhooks/{webhookId}— Update an endpoint
- GET/v1/webhooks/{webhookId}/deliveries— An endpoint's deliveries
- POST/v1/properties/batch— Batch of properties
- POST/v1/leads/batch— Batch of clients
Example
{
"type": "https://imobyflow.com.br/desenvolvedores/erros/invalid-param",
"title": "Invalid parameter",
"status": 400,
"code": "invalid_param",
"requestId": "8c1f0a4e-2b7d-4c39-9e51-6a0d3f2b1c7e"
}Tap or hover a field to see what it means.