Webhook
SPA: Creates a new Webhook resource.
Creates a new Webhook resource.
POST
/api/spa/webhooksAuthorizations
X-AUTH-TOKEN
stringheaderrequired
Value for the X-AUTH-TOKEN header parameter.
Request Body
application/json
required
The new Webhook resource
{
"identifier": "my-webhook",
"type": "sftp-document",
"priority": 1,
"data": {
"host": "sftp.example.com",
"user": "sftp-user",
"password": "sftp-password",
"directory": "sftp-directory/sub-directory",
"port": 22
},
"active": true,
"activeFrom": "2024-01-01",
"groupIdentifier": "my_group",
"groupCondition": "data['contract']['balance'] > 0"
}Response
201
Webhook resource created
id
integer
Webhook ID generated by Output.Rocks.
identifier
stringrequired
Customer Identifier, used for webhook selection in rendering process
type
enum<string>
Webhook type
priority
integer
Webhook execution priority
data
object
Webhook configuration data.<br><b>IMPORTANT:</b> data structure depends on webhook type
createdBy
string
User, created this entry
updatedBy
string
User, updated this entry
createdAt
string<date-time>
UTC date time of entry creation
updatedAt
string<date-time>
UTC date time of last entry update
active
boolean
Active flag. Default: true
activeFrom
string<date-time>
Date to activate the entry. Default: today
groupIdentifier
string
Optional group identifier to be used with group conditions
groupCondition
string
Group condition.