Skip to main content
PATCH
C#

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

更新するフックの ID。

ボディ

dependencies
object

webtask server が使用する、このフックの依存関係。

enabled
boolean
デフォルト:false

このフックを実行するか(true)、無視するか(false)。

name
string
デフォルト:my-hook

このフックの名前。

Pattern: ^[a-zA-Z0-9]([ \-a-zA-Z0-9]*[a-zA-Z0-9])?$
script
string
デフォルト:module.exports = function(client, scope, audience, context, cb) cb(null, access_token); };

このフックの実行時に実行されるコード。

Minimum string length: 1

レスポンス

フックを正常に作成しました。

dependencies
object

webtask server が使用する、このフックの依存関係。

enabled
boolean
デフォルト:true

このフックを実行するか(true)、無視するか(false)。

id
string
デフォルト:00001

このフックの ID。

name
string
デフォルト:hook

このフックの名前。

script
string
デフォルト:module.exports = function(client, scope, audience, context, cb) cb(null, access_token); };

このフックの実行時に実行されるコード。

triggerId
string

トリガー ID