跳转到内容
EN

绑定素材库

POST /cut/v1/projects/{project_id}/bindings

Attach an accessible media library to an existing project under a unique name. Obtain library_id from praxis.media and choose read for source-only access or read_write for imports and exports. The project must retain exactly one read_write binding with default_upload true after the change.

支持状态: supported

参数

名称位置类型必填说明
project_idpathstringtrueProject identifier returned by its create or list operation; use the id, not a display name.

请求体 (application/json)

必填: true

名称类型说明
bindingobjectA named project link to a media library. Exactly one read_write binding must be default_upload.
binding.namestringUnique binding alias used in imports and exports; begins with a lowercase letter.
binding.library_idstringMedia library id from praxis.media.libraries.create or list; must be accessible to this organization.
binding.accessstringread permits using library assets; read_write also permits imports and exports into the library.
binding.default_uploadbooleanTrue selects the one read_write library used when an import or export omits binding.
{
"type": "object",
"description": "Attach a media library using a project-local name.",
"properties": {
"binding": {
"$ref": "#/components/schemas/cut-Binding"
}
},
"required": [
"binding"
]
}

响应

HTTP 201

New resource; save its id for subsequent calls.

application/json

名称 类型 说明
name string Unique binding alias used in imports and exports; begins with a lowercase letter.
library_id string Media library id from praxis.media.libraries.create or list; must be accessible to this organization.
access string read permits using library assets; read_write also permits imports and exports into the library.
default_upload boolean True selects the one read_write library used when an import or export omits binding.