Skip to main content

validation_string_pattern

HTTP Status: 422 Category: Validation

When you see this

String failed a format constraint (regex, uuid, email, url, date).

How to fix it

Validate against the documented format. Check error.details.errors[].ctx.pattern for the regex if declared.

Example response

{
"error": {
"code": "validation_string_pattern",
"message": "String failed a format constraint (regex, uuid, email, url, date).",
"hint": null,
"doc_url": "https://docs.valara.cloud/api-reference/errors/validation_string_pattern",
"request_id": "req_01H...",
"details": {
"errors": [],
"field_count": 0
}
}
}