Request

Fetches the list of available validation rules.

Security
Bearer
Query
environmentIdstring

The environment identifier. Defaults to "main". Currently only "main" is supported.

Example:environmentId=main
curl -i -X GET \
  'https://edge-platform.sitecorecloud.io/authoring/api/v1/content-types/validation-rules?environmentId=main' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Successful operation

Bodyapplication/json
Array [
idstring or null

Rule identifier.

Example:"59d4ee10-627c-4fd3-a964-61a88b092cbc"
namestring or null

Rule name.

Example:"Max Length"
displayNamestring or null

Rule display name.

Example:"Max Length"
scopestring or null

Rule scope. Currently supports field scope for field-level validation.

Example:"field"
]
Response
[ { "id": "59d4ee10-627c-4fd3-a964-61a88b092cbc", "name": "Max Length", "displayName": "Max Length", "scope": "field" } ]