Edit Prospect
Edit a limited number of fields on a specified company prospect. This endpoint allows you to update the prospect's status and, optionally, application details. The application object is never required — but if you include it, status must be 'applicant' or 'resident' in the same request. Prospect data must be nested under the 'client' key in the JSON body. This endpoint requires a private API key with the clients route permission; public keys are rejected.
/api/v2/clients/:client_idRequest
Response
Requires a private API key
/api/v2/clients/{id} require a private API key with the clients route permission. A public key gets a generic 403 here, even if it otherwise has the clients permission — see Route permissions on the Authentication page for why that 403 looks different from a route-permission error.Simple Status Change Example
For a simple status change without application details:
Error bodies carry no validation detail
"missing or invalid data" — never an array, and never the underlying reason (e.g. it won't distinguish "not an integer" from "not a valid choice"). The error keys still tell you which fields failed. A prospect id that doesn't exist for your company returns a plain 404 with Django's default HTML error page, not a JSON body — don't attempt to parse a 404 from this endpoint as JSON.Prospect Not Found (404)
Returned when client_id doesn't match a prospect for your company. As noted above, this is Django's default HTML error page, not a JSON body — don't attempt to parse it as JSON.
Invalid Status (400)
Returned in two distinct cases that produce an identical body: status itself is missing or isn't one of the valid choices, or application was sent alongside a status other than 'applicant' or 'resident'.
Invalid Application Data (400)
If one or more fields inside application are missing or invalid (for example, an unrecognized unit_id or an unparseable date), a 400 error response will be returned, keyed by field under application. This example shows unit_id, lease_start_date, and application_submitted_date all failing at once.