メインコンテンツへスキップ
PATCH
https://{tenantDomain}/api/v2
/
actions
/
modules
/
{id}
特定のActions Moduleを更新
curl --request PATCH \
  --url https://{tenantDomain}/api/v2/actions/modules/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "dependencies": [
    {
      "name": "<string>",
      "version": "<string>"
    }
  ],
  "secrets": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ]
}
'
{
  "actions_using_module_total": 123,
  "all_changes_published": true,
  "code": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "dependencies": [
    {
      "name": "<string>",
      "version": "<string>"
    }
  ],
  "id": "<string>",
  "latest_version": {
    "code": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "dependencies": [
      {
        "name": "<string>",
        "version": "<string>"
      }
    ],
    "id": "<string>",
    "secrets": [
      {
        "name": "<string>",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "version_number": 123
  },
  "latest_version_number": 123,
  "name": "<string>",
  "secrets": [
    {
      "name": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "updated_at": "2023-11-07T05:31:56Z"
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

更新する Action Module の ID。

ボディ

code
string

Action Module のソースコード。

Maximum string length: 65536
Pattern: ^[^]*$
dependencies
object[]

Action Module の npm 依存関係。

secrets
object[]

Action Module に関連付けるシークレット。

レスポンス

Action Module が更新されました。

actions_using_module_total
integer

このモジュールを使用しているデプロイ済み Action の数。

all_changes_published
boolean

すべてのドラフト変更がバージョンとして公開されているかどうか。

code
string

モジュールのドラフト版のソースコード。

created_at
string<date-time>

モジュールが作成された日時。

dependencies
object[]

モジュールのドラフト版の npm 依存関係。

id
string

モジュールの一意の ID。

latest_version
object

参照オブジェクトとしての最新の公開済みバージョン。公開済みバージョンがない場合は省略されます。

latest_version_number
integer

最新の公開済みバージョンのバージョン番号。公開済みバージョンがない場合は省略されます。

name
string

モジュールの名前。

secrets
object[]

モジュールのドラフト版のシークレット(名前とタイムスタンプのみで、値は返されません)。

updated_at
string<date-time>

モジュールが最後に更新された日時。