Leads - Admin
Api Create Observation
Changed onCreate an observation, optionally with pasted images (ticket #923).
One request, one transaction: either the observation and all of its images exist, or nothing does. The alternative — create the row, then POST the files to a second endpoint — leaves a text-only observation behind whenever the second call fails, and the composer has already been cleared by then.
⛔ The length constraint lives on Form(), not on a Pydantic body model: a model cannot bind as the body of a multipart route.
post/api/leads/{lead_id}/observations
Request
- Base URLhttps://api.multigest.pt (the document declares no server; this is the origin it was published from)
- URLhttps://api.multigest.pt/api/leads/{lead_id}/observations
- AuthAPI key in header x-api-token and API key in header x-origin-verify
Path parameters
lead_idinteger required
Headers
x-api-tokenstring nullable
Request body multipart/form-data
Response
Successful Response
unknown required
Changes
- info
endpoint added
- info