メインコンテンツへスキップ
POST
/
v3beta1
/
organizations
/
{org_id}
/
snapshot-setup
/
blueprints
orgティアまたはrepoティアのブループリントを作成する
curl --request POST \
  --url https://api.devin.ai/v3beta1/organizations/{org_id}/snapshot-setup/blueprints \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contents": "<string>",
  "repo_name": "<string>"
}
'
{
  "blueprint_id": "<string>",
  "created_at": 123,
  "repo_name": "<string>",
  "type": "enterprise",
  "updated_at": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.devin.ai/llms.txt

Use this file to discover all available pages before exploring further.

権限

組織レベルで ManageRepoBlueprints 権限を持つサービスユーザーが必要です。org ティア ブループリントの作成には、ManageOrgSnapshots 権限が必要です。

動作

org または repo ティアのブループリントを作成します。ブループリントは、Devin セッション用の宣言的な環境設定を定義します。ブループリントを変更してもビルドは自動ではトリガーされません。builds エンドポイントを明示的に呼び出す必要があります。

承認

Authorization
string
header
必須

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

ボディ

application/json
contents
string | null

ブループリントの初期 YAML 本文(省略可)。

repo_name
string | null

設定すると、そのリポジトリ用の repo ティア ブループリントを作成します。省略した場合は、org-wide(org-tier)ブループリントを作成します。

レスポンス

成功レスポンス

公開 Blueprint リソースの形式。

注: type 列挙型には今後値が追加される可能性があります。クライアントは未知の値を必ず適切に処理する必要があります。YAML内容は GET /blueprints/{id}/contents で別途取得します。

blueprint_id
string
必須
created_at
integer
必須
repo_name
string | null
必須
type
enum<string>
必須
利用可能なオプション:
enterprise,
org,
repo
updated_at
integer
必須