Update a UnifyPort Workspace Without Disabling API Access
To rename a UnifyPort workspace, call PATCH /v1/workspace with both name and status. For a workspace that should remain usable, send status: "active". Omit metadata to retain it, or send {} to clear it deliberately; null is invalid. Do not treat inactive as a harmless settings toggle: it prevents every API key in that workspace from authenticating.
Key takeaways
- The request’s
X-Api-Keyselects the workspace; no workspace ID belongs in the body. - A rename still requires
status. The HTTP method does not make every field optional. - An additional key in the same workspace is not protection against workspace deactivation.
- Updating settings is separate from stopping a messaging account or pausing application workers.
Build the form around the actual contract
The Update current workspace reference documents PATCH /v1/workspace. Before editing, read Get current workspace with the same backend credential you will use for the write. Confirm that it is the intended workspace, not simply that authentication succeeds.
| Field | Rename-only request | Important boundary |
|---|---|---|
name | Supply the intended name | Required even when another setting is the main change |
status | Supply active for this workflow | Required; inactive disables authentication for all workspace API keys |
metadata | Omit | Omission preserves the existing value; {} clears it; null is invalid |
Do not serialize an entire read response into the update body. Quota fields and other returned information are not automatically editable inputs. Keep the request allowlist limited to documented update fields.
Treat non-empty metadata changes as a separate reviewed edit. The documented omission rule is not permission to assume that sending a partial object performs a nested merge. If you need to preserve entries, review the complete intended object against a fresh read rather than guessing merge semantics.
Make rename a narrow operation
A rename screen does not need a workspace activation checkbox. A safer application design keeps that decision outside the ordinary name form and constructs the body explicitly.
This illustrative JavaScript creates a rename-only body. It performs no network call and has not been executed for this article:
function workspaceRenameBody(name) {
if (typeof name !== 'string' || !name.trim()) {
throw new Error('Enter the reviewed workspace name');
}
return { name, status: 'active' };
}
The nonblank check is a local safeguard, not a complete API validator. This helper is intentionally for an active-workspace rename, not a generic status editor. It omits metadata, so an empty optional form field cannot accidentally clear it.
Send the resulting JSON from your backend to PATCH /v1/workspace, using X-Api-Key and Content-Type: application/json. For a hypothetical workspace named “Support Operations,” the body is:
{
"name": "Support Operations",
"status": "active"
}
Keep the API key out of the browser and request logs. Require your application’s own operator authorization before dispatch: the API introduction states that a workspace API key grants full access to its workspace, not just permission to rename it.
Treat clearing metadata as its own decision
If the operator explicitly wants to remove workspace metadata, show that consequence separately and submit the required fields alongside metadata: {}. Do not turn a missing form value into an empty object by default.
Recommended application checks:
- Read the workspace and show the current name and metadata to an authorized operator.
- Distinguish “leave metadata unchanged” from “clear metadata.”
- Coordinate settings writers in your application so a stale form does not silently overwrite a newer decision.
- Preserve the HTTP outcome, then read the workspace again to compare the intended settings with the observed ones.
These are application safeguards, not a documented atomic compare-and-set feature. Do not invent a version field or a conditional-update guarantee.
Why a second API key is not a recovery plan
There are two different authentication boundaries:
| Action | Documented effect |
|---|---|
Set one API key to inactive | That key cannot authenticate subsequent requests |
Set the workspace to inactive | Every API key in that workspace is prevented from authenticating |
The API key rotation runbook uses an overlap between two keys to replace a credential. That technique does not preserve access when the workspace itself becomes inactive. Do not assume the same keys can then authenticate a corrective PATCH.
If workspace deactivation was accidental, retain redacted request evidence and seek an authorized management or support path. The public workspace endpoint reference does not document a key-authenticated self-recovery route after this lockout. Do not promise a dashboard button or recovery endpoint that the reference does not establish.
Likewise, workspace deactivation is not a documented connection-pause procedure. To deliberately stop a messaging account’s runtime, use the separate planned runtime pause workflow. Do not infer runtime shutdown, webhook draining, deletion, or billing changes from the workspace status contract.
Verify outcomes without replaying stale settings
After success, read the workspace with the intended credential and confirm the name, active status, and metadata behavior. After a timeout or unreadable response, read first: the write’s result is uncertain, not necessarily failed. Review any newer changes before submitting again.
Suggested acceptance checks include a rename with metadata omitted, an explicitly approved metadata clear, rejection of null in your form builder, and a lost response. Do not deactivate a production workspace just to test the warning. These are proposed checks, not reported results.
FAQ
Can I send only name because this is PATCH?
No. This endpoint requires both name and status.
Does metadata: null mean keep the current value?
No. Omit the field to retain it. An empty object clears it; null is invalid.
Will another active key work after workspace deactivation?
No. The documented restriction applies to every API key in that workspace, not just the key that submitted the change.
Does inactive pause billing or delete messages?
The workspace update contract does not establish either outcome. It explicitly describes the authentication restriction; do not extend it to unrelated operations.
Next step and sources
Implement the narrow rename operation against Update current workspace, with a separate confirmation path for metadata clearing.
Product references checked on 2026-11-29:
Turn messaging integration into a stable product pipeline.
Start by sending through one API, then bring every inbound message back into your business system with standard events.