Set workspace profile
set_workspace_profileRecord who this workspace is: company or organization name, industry, who the page is mainly shared with, and one sentence on what it is used for. The web form for this was retired; this is the only way to write it. company_name is the sole source of the company name on WeChat share cards — without it recipients see a generated workspace name. Fields passed are merged into the existing profile and omitted fields are left unchanged, so changing only the company name needs only company_name. A first-time profile must supply the required fields: with usage=work, company name and industry are required; customer_type and use_case are required in both modes. Validation matches the retired web form exactly: placeholder names such as “personal”, “test” or “my company” are rejected (pass usage="personal" for personal use, which does not ask for company or industry), phone numbers and messaging handles are not allowed in the name, and industry must be one of the listed values. The profile is used for compliance and support and is not shown to viewers, except that the company name appears on share cards. embed_origins (owner only) is the embed allowlist: the parent origins (https://domain) that may frame this workspace’s pages through an embed link (preview_version with embed_origin); it replaces the whole list, [] clears it, and empty (the default) means only the platform first-party origins (Tokenman web chat: https://claudefleet.24haowan.com, https://ccquota.24haowan.com) may embed — those are always allowed, need no setup and do not count towards the 5. It opens embed links only — page links are unaffected. Passing only embed_origins leaves the profile untouched. Read-only members cannot call it. icon_base64 sets the workspace icon (base64 PNG or JPEG, up to 2 MB, square works best; only use a logo or avatar the user provides): it becomes the avatar on the workspace home page and folder pages and the browser tab icon for every page on https://.hy.24haowan.com; an empty string removes it. Passing only it leaves the profile untouched. The company name is also what readers see as the workspace name on the home page and folder pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | No | Usage: work (default) means work use, where company name and industry are required; personal allows both to be empty. | |
| industry | No | Industry (required when usage=work); must be one of the listed values. | |
| use_case | No | One sentence on what you will send and to whom, for example “send the weekly report to my team”. | |
| icon_base64 | No | Base64 of the workspace icon (a data:image/png;base64, prefix is fine), PNG or JPEG, up to 2 MB; an empty string removes the icon | |
| company_name | No | Company or organization name (required when usage=work). It appears on WeChat share cards. | |
| customer_type | No | Who your pages are mainly shared with: b2b = colleagues, clients or partners; b2c = friends, family and other individuals. | |
| embed_origins | No | Owner only: the embed allowlist, an array of https://domain origins (such as https://example.com); replaces the whole list, [] clears it. It adds to the platform first-party origins (claudefleet / ccquota.24haowan.com), which are allowed by default. |