Leads - Admin

Api Create Observation

Changed on

Create 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 URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/leads/{lead_id}/observations
  • Auth
    API 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

descriptionstring required
filesstring[]

Response

Successful Response

unknown required

Changes