Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

Body

application/json
name
string
required

The display name of the custom hook

hook
enum<string>
required
Available options:
validateFeature,
validateFeatureRevision,
validateConfig,
validateConfigRevision,
validateExperiment
code
string
required
enabled
boolean
default:true
projects
string[]

Project ids the hook applies to (empty/omitted = all)

entityType
enum<string>
Available options:
feature,
config,
experiment
entityId
string
incrementalChangesOnly
boolean

Response

200 - application/json

Resource created

customHook
object
required