Validation errors

The errors member of a request_validation_failed problem document, in full. Every other code this API returns is in the error reference.

A request_validation_failed document carries one further member, errors, holding every constraint the request body broke. There is one item per violation, so a body with three problems is fixed from one response.

{
  "type": "https://developer.carepatron.com/docs/errors#request_validation_failed",
  "title": "Request body validation failed",
  "status": 400,
  "instance": "urn:trace:0af7651916cd43dd8448eb211c80319c",
  "timestamp": "2026-01-15T10:30:00.0000000Z",
  "errors": [
    { "pointer": "/personalDetails/firstName", "code": "pattern", "detail": "Must match the pattern the schema declares." },
    { "pointer": "/personalDetails/lastName", "code": "max_length", "detail": "Character count must be at most 100." }
  ]
}

An item never contains the rejected value or anything derived from it, its length included. A custom_field_missing item names the workspace's own key for the field the body left out: the key is the workspace's configuration, not a value the request sent. Resolve pointer plus code against the operation's request schema for the constraint's exact terms.