A fork is a new space made from another space (or one folder of it) without copying bytes: it shares the original's files, data key and bucket. Work in it like any space, list what changed, and apply changes back. Making or applying a fork needs files:write.
5 个接口 · 概览
sidstring必填200itemsSpace[]必填idstring必填namestring必填viewercommentereditormanagerowner_idstring必填root_node_idstring必填journal_seqinteger必填storage_idstringforkobjectfrom_space_idstring必填pathstring必填at_seqinteger必填copyobjectstatestring必填copyingdonefailedcopiedinteger必填copied_bytesinteger必填errorstringworkspace_idstring必填workspace_namestringworkspace_roleWorkspaceRoleviewercommentereditoradminownerlockedstringplan_requiredcurl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/forks" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"items": [
{
"id": "id",
"name": "A001_C003.mov",
"role": "viewer",
"owner_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"root_node_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"journal_seq": 1,
"created_at": "2026-11-14T09:30:00Z",
"storage_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"fork": {},
"workspace_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"workspace_name": "workspace_name",
"workspace_role": "viewer",
"locked": "plan_required"
}
]
}Copies every live file and folder (or those under path) as rows that point at the same content; head versions only, with their sidecars and renditions. A token for the space reaches the fork as it is; a token with drive_ids gets the fork added to them. A manager of the space, or whoever made the fork, may rename or delete it. With copy, the fork then copies the bytes its files use into its own storage (storage_id, or the original's) in the background and stops depending on the original; fork.copy shows how far it is.
sidstring必填namestring必填pathstringcopybooleanstorage_idstringcurl -X POST "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/forks" \
-H "Authorization: Bearer $SIDESPACE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"A001_C003.mov"}'{
"id": "id",
"name": "A001_C003.mov",
"role": "viewer",
"owner_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"root_node_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"journal_seq": 1,
"created_at": "2026-11-14T09:30:00Z",
"storage_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"fork": {
"from_space_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"path": "Ep01/Shots/A001_C003.mov",
"at_seq": 1,
"copy": {
"state": "copying",
"copied": 1,
"copied_bytes": 1,
"error": "error"
}
},
"workspace_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"workspace_name": "workspace_name",
"workspace_role": "viewer",
"locked": "plan_required"
}sidstring必填204curl -X POST "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/fork/copy/retry" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"sidstring必填200itemsForkChange[]必填kindstring必填addedmodifiedmetadatamoveddeletednode_kindstring必填filedirpathstring必填node_idstring必填origin_pathstringorigin_node_idstringsidecarsstring[]conflictbooleanwhystringcurl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/fork/changes" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"items": [
{
"kind": "added",
"node_kind": "file",
"path": "Ep01/Shots/A001_C003.mov",
"node_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"origin_path": "origin_path",
"origin_node_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
"sidecars": [],
"conflict": false,
"why": "why"
}
]
}Deletes, then moves, then new folders and files, then edited files and metadata, each on its own. A conflict (the original changed the file since the fork) is skipped unless force, which replaces it; its author is notified as for any save.
sidstring必填pathsstring[]forcebooleandry_runboolean200itemsForkApplied[]必填kindstring必填addedmodifiedmetadatamoveddeletednode_kindstring必填filedirpathstring必填node_idstring必填origin_pathstringorigin_node_idstringsidecarsstring[]conflictbooleanwhystringresultstring必填appliedskippedwould applyfailederrorstringcurl -X POST "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/fork/apply" \
-H "Authorization: Bearer $SIDESPACE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"paths":["Ep01/Shots/A001_C003.mov"],"force":false,"dry_run":false}'{
"items": [
{
"result": "applied",
"error": "error"
}
]
}