跳转到内容
EN

更新项目资料

PATCH /cut/v1/projects/{project_id}

Change the project display name or replace its labels by naming those fields in update_mask. Use execute for clip or track edits. Each successful update commits a new revision; labels are replaced as a whole when selected, so read and merge existing labels before overwriting them.

支持状态: supported

参数

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

请求体 (application/json)

必填: true

名称类型说明
namestringReplacement display name when update_mask includes name.
labelsobjectUser-defined string labels for organizing projects; label keys retain their original spelling.
update_maskarray<string>Metadata fields to replace; name changes the display name and labels replaces all labels.
{
"type": "object",
"description": "Update only the named project metadata fields; timeline edits use execute.",
"properties": {
"name": {
"type": "string",
"description": "Replacement display name when update_mask includes name."
},
"labels": {
"type": "object",
"description": "User-defined string labels for organizing projects; label keys retain their original spelling.",
"additionalProperties": {
"type": "string"
}
},
"update_mask": {
"type": "array",
"description": "Metadata fields to replace; name changes the display name and labels replaces all labels.",
"items": {
"type": "string",
"description": "name selects the project display name; labels selects the complete label map.",
"enum": [
"name",
"labels"
],
"example": "name"
}
}
},
"required": [
"update_mask"
]
}

响应

HTTP 200

Requested resource or operation result; use its revision when preparing a guarded edit.

application/json

名称 类型 说明
id string Project id assigned by create; pass as project_id on subsequent requests.
name string Human-readable editing project name; not an API identifier.
owner string Organization that owns the project and its editing history.
labels object User-defined string labels for organizing projects; label keys retain their original spelling.
state string active projects can be edited; deleted projects are retained until purge_time and may be undeleted.
revision integer Committed project revision from retrieve, state, timeline or execute; increases after each successful write.
settings object Rendering dimensions, frame rate and audio sample rate for this project.
settings.width integer Output width in pixels; even integer between 16 and 4096.
settings.height integer Output height in pixels; even integer between 16 and 4096.
settings.fps object Exact frames-per-second fraction used to snap second-based edits to project frames.
settings.background string Background color as #RRGGBB or #RRGGBBAA; omission uses black.
settings.sample_rate integer Project audio sample rate in hertz; fixed at 48000.
bindings array<object> Named library bindings available to scripts, imports and exports.
bindings[].name string Unique binding alias used in imports and exports; begins with a lowercase letter.
bindings[].library_id string Media library id from praxis.media.libraries.create or list; must be accessible to this organization.
bindings[].access string read permits using library assets; read_write also permits imports and exports into the library.
bindings[].default_upload boolean True selects the one read_write library used when an import or export omits binding.
create_time string ISO 8601 timestamp when this project was created.
console_url string Link that opens this project in the Praxis Console, in the Console of the environment serving the request. Open this URL when telling a user where to edit the project, and use the value as given — do not build the link yourself, because the Console host differs per environment (develop and production are different hosts) and a composed address will not open.
update_time string ISO 8601 timestamp of the latest committed project update.
purge_time string ISO 8601 deadline for permanent removal of a deleted project; absent for active projects.