Custom Hook
Which save/publish event runs the hook (and which entity type it validates)
Available options:
validateFeature, validateFeatureRevision, validateConfig, validateConfigRevision, validateExperiment JavaScript function body executed in the sandbox. Throw an Error to block the save; call addWarning(msg) for a soft warning.
Project ids the hook applies to (empty = all projects). Always empty for entity-scoped hooks.
Set (with entityId) to scope the hook to a single resource.
Available options:
feature, config, experiment The scoped resource: a feature id, or a config key. A config-scoped hook always runs for that config and every config that inherits from it (via parent/extends, transitively).
When true, errors/warnings that already existed before the change being validated are suppressed
Was this page helpful?
⌘I
{
"id": "<string>",
"name": "<string>",
"code": "<string>",
"enabled": true,
"projects": [
"<string>"
],
"dateCreated": "2023-11-07T05:31:56Z",
"dateUpdated": "2023-11-07T05:31:56Z",
"entityId": "<string>",
"incrementalChangesOnly": true,
"lastSuccess": "2023-11-07T05:31:56Z",
"lastFailure": "2023-11-07T05:31:56Z"
}
