Rename the organization
PATCH
/v1/tenant
const url = 'https://api.wirevod.online/v1/tenant';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Acme Learning"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.wirevod.online/v1/tenant \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Acme Learning" }'Requires the admin scope. The slug does not change.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
Example
{ "name": "Acme Learning"}Responses
Section titled “ Responses ”The updated organization.
Media typeapplication/json
object
tenant
required
object
id
required
string
slug
required
string
name
required
string
plan
required
string
status
required
string
created_at
required
integer
Example
{ "tenant": { "id": "ten_01J9Z", "slug": "acme-media-4f2a1b", "name": "Acme Learning", "plan": "free", "status": "active", "created_at": 1760000000000 }}The request was malformed or failed validation.
Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{ "error": "invalid_request", "code": "invalid_request", "message": "asset_id is required"}Missing or invalid credentials.
Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{ "error": "unauthorized", "code": "unauthorized", "message": "Authentication required"}The principal lacks the required scope or role (forbidden), the
user must change their password before continuing
(password_change_required), or the workspace is suspended
(tenant_suspended; every request is refused until it is restored;
contact support).
Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{ "error": "forbidden", "code": "forbidden", "message": "Missing required scope: write"}The resource does not exist in the tenant, or the route is unknown.
Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{ "error": "not_found", "code": "not_found", "message": "Asset not found"}Too many requests in the current window.
Media typeapplication/json
object
error
required
string
code
required
string
message
required
string
details
Example
{ "error": "rate_limited", "code": "rate_limited", "message": "Too many requests", "details": { "retry_after": 60 }}Headers
Section titled “Headers”Retry-After
integer
Seconds to wait before retrying.