Bind media library
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.
Support: supported
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| project_id | path | string | true | Project identifier returned by its create or list operation; use the id, not a display name. |
Request body (application/json)
Required: true
| Name | Type | Description |
|---|---|---|
| binding | object | A named project link to a media library. Exactly one read_write binding must be default_upload. |
| binding.name | string | Unique binding alias used in imports and exports; begins with a lowercase letter. |
| binding.library_id | string | Media library id from praxis.media.libraries.create or list; must be accessible to this organization. |
| binding.access | string | read permits using library assets; read_write also permits imports and exports into the library. |
| binding.default_upload | boolean | True 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" ]}Response
HTTP 201
New resource; save its id for subsequent calls.
application/json
| Name | Type | Description |
|---|---|---|
| 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. |