Validate an event without creating it
Changed onChecks the body as creating the event in this agenda would - the caller's right to create, the fields the agenda requires, every field value - without creating anything. A valid body answers 200 { "valid": true }; an invalid one answers 422 with per-field problems under error.errors[], and a caller who may not create gets 403.
A native image: { url } is checked for URL syntax only (an http(s) URL without embedded credentials): the URL is not fetched, so a URL that create rejects with 422 at fetch time (unreachable host, private address, over 20 MiB, not an image) passes validate. The image counts as present, so an agenda whose schema requires one validates as it would create.
Request
- Base URL: https://api.openagenda.com/v3
- URL: https://api.openagenda.com/v3/agendas/{agendaUid}/events/validate
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://openagenda.com/api/auth/oauth2/authorize, token URL https://openagenda.com/api/auth/oauth2/token, scopes: events:write)
Path parameters
Numeric uid of the agenda.
Request body
Example request
{
"title": {
"fr": "Concert de jazz",
"en": "Jazz concert"
},
"description": {
"fr": "Concert de jazz",
"en": "Jazz concert"
},
"longDescription": {
"fr": "Concert de jazz",
"en": "Jazz concert"
},
"conditions": {
"fr": "Concert de jazz",
"en": "Jazz concert"
}
}Response
The body is valid.
Changes
- info
added the optional property
///to the response with the status - info
added the optional property
///////to the response with the status
- info
- breaking
added to the response body
oneOflist for the response status - breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
added the new
bad_requestenum value to the/response property for the response status - warning
added the new
bad_requestenum value to the/response property for the response status - warning
added the new
bad_requestenum value to the/response property for the response status - warning
added the new
bad_requestenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
insufficient_scopeenum value to the/response property for the response status - warning
added the new
insufficient_scopeenum value to the/response property for the response status - warning
added the new
insufficient_scopeenum value to the/response property for the response status - warning
added the new
not_foundenum value to the/response property for the response status - warning
added the new
not_foundenum value to the/response property for the response status - warning
added the new
not_foundenum value to the/response property for the response status - warning
added the new
read_only_credentialenum value to the/response property for the response status - warning
added the new
read_only_credentialenum value to the/response property for the response status - warning
added the new
read_only_credentialenum value to the/response property for the response status - warning
added the new
service_unavailableenum value to the/response property for the response status - warning
added the new
service_unavailableenum value to the/response property for the response status - warning
added the new
service_unavailableenum value to the/response property for the response status - warning
added the new
unauthorizedenum value to the/response property for the response status - warning
added the new
unauthorizedenum value to the/response property for the response status - warning
added the new
unauthorizedenum value to the/response property for the response status - warning
added the new
validation_errorenum value to the/response property for the response status - info
added the required property
/to the response with the status
- breaking