OpenapiProjects
Delete star
Removes the caller's own bookmark from a project, and answers whether it is starred afterwards.
DELETE /v1/projects/{slug}/star
| Address | https://api.hanzo.ai/v1/projects/{slug}/star |
| Method | DELETE |
| Operation | delete_projects_by_slug_star |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Removes the caller's own bookmark from a project, and answers whether it is starred afterwards.
It removes only YOUR star — the same one star wrote — so a project other people have starred stays on their lists. Unstarring one you had not starred is not an error; it leaves it unstarred.
Request
1 field.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | string | yes | Slug is the project to act on, from the path. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | projectsStar | ok |
200 body — 1 field.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
starred | body | boolean | — | Starred is whether THIS caller has starred the project after the toggle — their own bookmark, not a property the project carries, so two people see two answers… |
Failure carries the platform error shape — see Errors.
Examples
hanzo projects star clear <slug>import { Configuration, ProjectsApi } from 'hanzoai';
const api = new ProjectsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.deleteProjectsBySlugStar({ slug: 'slug' });from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import ProjectsApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = ProjectsApi(client).delete_projects_by_slug_star(slug='slug')cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.ProjectsAPI.DeleteProjectsBySlugStar(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, projects_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = projects_api::delete_projects_by_slug_star(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.ProjectsApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new ProjectsApi(client).deleteProjectsBySlugStar();curl -X DELETE https://api.hanzo.ai/v1/projects/<slug>/star \
-H "Authorization: Bearer $HANZO_API_KEY"MCP reaches projects through the projects tool, which names its 48 operations with its own verbs — this one among them, under a name only MCP declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "list_projects"
}
}
}'How is this guide?