Create Hook

Scopes
write:hook

Request Body

content
string
Zorunlu

Your hook code written in javascript.

name
string
Zorunlu

Hook name

type
string
Zorunlu

Defines hook's area of usage

Mevcut Değerler: pre-registerpost-registerpre-loginpost-loginpre-mfapre-access-tokenpre-id-tokenpre-fc-importpost-fc-importpre-fc-exportciba-auth-promptciba-validate-r-cciba-validate-u-c

description
string

Additional information for the hook

enabled
boolean

Whether the hook is enabled or not.

order
integer
min0
max
20000

Execution order of the hook. It applies to hook types. Lower ordered hooks executed first.

POST
/hooks
1
2
3
4
5
Loading...
Response:
201
Loading...

Response Body Schema

content
string
Zorunlu

Your hook code written in javascript.

enabled
boolean
Zorunlu

Whether the hook is enabled or not.

id
string
Zorunlu

Unique identifier of entity

name
string
Zorunlu

Hook name

order
integer
Zorunlu
min0
max
20000

Execution order of the hook. It applies to hook types. Lower ordered hooks executed first.

type
string
Zorunlu

Defines hook's area of usage

Mevcut Değerler: pre-registerpost-registerpre-loginpost-loginpre-mfapre-access-tokenpre-id-tokenpre-fc-importpost-fc-importpre-fc-exportciba-auth-promptciba-validate-r-cciba-validate-u-c

description
string

Additional information for the hook