Replace one of the authenticated user's projects
Path parameters
/{id}
stringUUID//
HTTP Request
HTTP BodyBinary
Content-Type:multipart/form-data
Response
- 200 OK
- //
:
[[ ... ],//- stringUUID//
]
created_at:
stringISO-8601,//description:
string,//entrypoint_path:
string,//id:
stringUUID,//preview_url:
string,//project_toml_path:
string,//revision:
string,//title:
string,//updated_at:
stringISO-8601,//:
[[ ... ],//- //
byte_size:
numberint64,//content_type:
string,//created_at:
stringISO-8601,//id:
stringUUID,//relative_path:
string,//sha256:
string,//sort_order:
numberint64,//updated_at:
stringISO-8601,//file_role:
"project_toml"+2▾- //The root `project.toml` manifest.
"project_toml" - //A project source file such as `.kcl`.
"project_file" - //A preview image generated or uploaded for the gallery.
"preview_image"
//
}
]
preview_status:
,"pending"+2▾- //A preview has not been generated yet.
"pending" - //The preview is available for display.
"ready" - //Preview generation failed and needs attention.
"failed"
//:
{{ ... },//feedback:
string,//has_unpublished_changes:
boolean,//last_published_at:
stringISO-8601,//last_published_version_id:
stringUUID,//submitted_at:
stringISO-8601//
}
publication_status:
"private"+6▾- //The project is owner-visible only and not intended for publication.
"private" - //The project is being prepared for publication but is not yet submitted.
"draft" - //The project is awaiting moderation review.
"pending_review" - //The project is publicly visible in the gallery.
"published" - //The project was reviewed and rejected.
"rejected" - //The project was removed from public display.
"deleted" - //The project was reviewed and changes were requested before it can be published.
"changes_requested"
//
}
Examples
put
/user/projects/{id}200 OK
Response