跳转到主要内容
POST
/
v1
/
playbooks
Create playbook
curl --request POST \
  --url https://api.devin.ai/v1/playbooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>",
  "title": "<string>",
  "macro": "<string>"
}
'
{
  "access_type": "<string>",
  "body": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "created_by_user_id": "<string>",
  "created_by_user_name": "<string>",
  "org_id": "<string>",
  "playbook_id": "<string>",
  "status": "<string>",
  "title": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "updated_by_user_id": "<string>",
  "updated_by_user_name": "<string>",
  "macro": "<string>"
}
新建团队 Playbook。需要 ManageOrgPlaybooks 权限。

授权

Authorization
string
header
必填

Personal API Key (apk_user_) or Service API Key (apk_)

请求体

application/json
body
string
必填
Minimum string length: 1
title
string
必填
Minimum string length: 1
macro
string | null

响应

Successful Response

access_type
string
必填
body
string
必填
created_at
string<date-time> | null
必填
created_by_user_id
string | null
必填
created_by_user_name
string | null
必填
org_id
string
必填
playbook_id
string
必填
status
string
必填
title
string
必填
updated_at
string<date-time> | null
必填
updated_by_user_id
string | null
必填
updated_by_user_name
string | null
必填
macro
string | null