hubPublish
set or clear a hub project's custom logo
Changed onRequires the caller to be a workspace admin. Sets the project's custom logo (base64 png/svg, decoded size max 512KB) or clears it when logo is null; the logo field itself is required so an empty body cannot clear the logo by accident. Forwards the request to the configured Hub scoped to the {workspace}:{folder} source and returns the Hub's status code and raw response body.
post/w/{workspace}/hub/projects/{slug}/logo
Request
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/w/{workspace}/hub/projects/{slug}/logo
- Auth: one of:
- HTTP bearer
- API key in cookie token
Path parameters
workspacestring required
slugstring required
hub project slug (3-50 chars, lowercase alphanumeric and hyphens, no leading/trailing hyphen)
hub project slug
Query parameters
folderstring required
workspace folder scoping the Hub publication: a workspace can publish one Hub project per folder and the Hub-side source key is {workspace}:{folder}
Request body
Response
raw Hub response body (status code is passed through from the Hub)
Changes
- info
endpoint added
- info