Skip to navigation

Create a validation rule

Beta

Create a validation rule on the parent schema.

The definition field uses the grammar this.fields.<systemName> = "value". References must use each field’s systemName; display names are rejected.

Only simple (non-template) rules can be created through this endpoint.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

rna_sequence_schema_idstringRequired
ID of the RnaSequenceSchema.

Headers

EARLY-ACCESSstringOptional

Set to true to access beta operations via /api/v3.

Request

This endpoint expects an object.
definitionstringRequired

Formula that must evaluate to true for validation to pass. Use the grammar this.fields.<systemName> = "value" (or other supported expressions). Field references must use the field’s systemName; display names are rejected. When the expression evaluates to false, the rule fails and errorMessage is returned.

errorMessagestringRequired<=255 characters
Message returned to users when an entity fails this rule during create or update.
namestringRequired
Short display name for the rule, shown in lists and settings.
descriptionstringOptional

Response

OK
validationRuleIdstringOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error