Set Workspace Custom Display Information¶
POST /api/v1/workspace/bind_info/set
Overview¶
Sets the custom display and notification binding information for the current workspace.
Before You Call and Usage Steps¶
- Use an API Key with the
workspace.setManagepermission for the current workspace, and first read the original value fromcontent.bindInfoin Current Workspace. - Submit only the fields that need to be changed this time; omitted fields keep their original values, and an empty string clears the value.
- After confirming
content=true, read the workspace information again; the details may take about 60 seconds to refresh, and the domain still requires an administrator to complete the onboarding.
Use an OpenAPI Key that has the workspace.setManage permission for the current workspace. The scope is the workspace to which the current Key belongs; passing another workspaceUUID in the body is not supported.
Only the submitted name/companyInfo/emailHeader/emailBottom/domain are merged into the current workspace bindInfo; omitted keys are retained, and an explicit empty string clears the value; submitting {} also updates the time. name is the bound product name for display, not the workspace name; it does not modify brandKey and does not switch brand configurations.
domain is saved as the original string, and a success response must not be taken as acceptance of domain onboarding; DNS, TLS certificates, and proxy configuration must be completed separately by the administrator. On success content=true, and no new object is returned; you can read it back from content.bindInfo in Current Workspace (details are cached for about 60 seconds and require a refresh). Existing unknown historical bindInfo keys are retained.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with the required permission from API Key Management in the target workspace. |
Body Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| name | string | Optional string; if omitted, the old value is retained; an empty string clears it; do not use it to modify the workspace name or the system brand identifier. Empty string allowed: True Example: GuanceHow to obtain or enter: Enter the product name that the current workspace needs to display. |
|
| companyInfo | string | Optional string; if omitted, it is retained; an empty string clears it. Empty string allowed: True Example: Service description of Example CompanyHow to obtain or enter: Enter the company/service introduction displayed for this workspace. |
|
| emailHeader | string | Optional string, the text displayed in the email header; if omitted, it is retained; an empty string clears it. Empty string allowed: True Example: Service NotificationHow to obtain or enter: Provided by the administrator responsible for notification content. |
|
| emailBottom | string | Optional string, the text displayed in the email footer; if omitted, it is retained; an empty string clears it. Empty string allowed: True Example: Please contact your service administratorHow to obtain or enter: Provided by the administrator responsible for notification content. |
|
| domain | string | Optional string; if omitted, it is retained; an empty string clears it. The current implementation does not validate the URL/domain format, nor does it configure DNS, HTTPS certificates, gateway routing, or verify domain ownership; the caller must prepare these separately. Empty string allowed: True Example: portal.example.comHow to obtain or enter: Provided by the site/network administrator as a prepared domain; it may include a port and must not include the protocol. |
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/workspace/bind_info/set' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"name":"Guance","companyInfo":"Service description of Example Company","domain":"portal.example.com"}'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | boolean | true when saved; this does not prove that the domain/DNS/certificate is available or that the client cache has been refreshed. |
{
"code": 200,
"content": true,
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | A request field is missing, or a field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | The request JSON syntax is invalid | Request JSON format error | Fix the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | The top level of the JSON is not an object | Some json file format error | Submit a JSON object as described in the parameter table. |
| 401 | ft.WKSPNotExistOrReleased | The current workspace does not exist or is not in an active state | Workspace does not exist or has been released | Use a Key for a valid workspace and check its status. |
| 500 | ft.InternalServerError | The bindInfo historical structure is abnormal, or the database save failed | Internal error | Check whether the save succeeded from the current workspace details; if it keeps failing, provide the traceId. |