メインコンテンツへスキップ
PUT
/
v3
/
enterprise
/
playbooks
/
{playbook_id}
プレイブックを更新します。
curl --request PUT \
  --url https://api.devin.ai/v3/enterprise/playbooks/{playbook_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>",
  "title": "<string>",
  "macro": "<string>"
}
'
{
  "access_type": "enterprise",
  "body": "<string>",
  "created_at": 123,
  "created_by": "<string>",
  "macro": "<string>",
  "org_id": "<string>",
  "playbook_id": "<string>",
  "title": "<string>",
  "updated_at": 123,
  "updated_by": "<string>"
}

権限

Enterprise レベルで ManageAccountPlaybooks 権限が付与されたサービスユーザーが必要です。

承認

Authorization
string
header
必須

サービスユーザーの認証情報(接頭辞: cog_)

パスパラメータ

playbook_id
string
必須

Playbook ID(接頭辞: playbook-)

:

"playbook-abc123def456"

ボディ

application/json
body
string
必須
title
string
必須
macro
string | null

Playbook マクロ識別子。'!' で始まり、その後に 1 文字以上の英字、数字、アンダースコア、またはハイフンが続く必要があります。例: '!my_macro' または '!my-macro'

レスポンス

成功時のレスポンス

access_type
enum<string>
必須
利用可能なオプション:
enterprise,
org
body
string
必須
created_at
integer
必須
created_by
string
必須
macro
string | null
必須
org_id
string | null
必須
playbook_id
string
必須
title
string
必須
updated_at
integer
必須
updated_by
string
必須