Craft Function
Update Craft Function
Craft function更新のリクエストを送信します。
Required Scope
APIの実行に必要なScopeです。
beta.craft.function.update
Required Role
管理画面でScopeを追加する際に必要な権限です。
Craft > Craft 設定の編集
post/v2beta/craft/function/update
Request
- Base URLhttps://api.karte.io
- URLhttps://api.karte.io/v2beta/craft/function/update
- AuthHTTP bearer
Headers
x-karte-apistring
今後利用する可能性のある予約語です。現在は設定不要です。
authorizationstring
認証情報を含むトークンです。"Authorization" ヘッダーに Bearer <token> の形式で設定してください。
content-typestring
リクエストのコンテンツタイプを指定します。通常は application/json を使用してください。
Request body
Example request
{
"id": "1234567890abcdef12345678",
"description": "This is a sample description for the craft service function.",
"code": "export default async function (data) { return true; }",
"variables": [
{
"name": "LOG_LEVEL",
"description": "Log level",
"type": "string",
"required": true
}
],
"packages": {
"package1": "1.0.0",
"package2": "2.0.0"
},
"active": true,
"kickHookV2": true
}Response
A successful response.
Changes
No recorded changes to this operation across all 1 revision of this API.