Change a member's role
const url = 'https://api.wirevod.online/v1/members/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"role":"admin"}'};
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/members/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "role": "admin" }'Requires the admin scope. Only owners may grant or remove the
owner role (403 otherwise), and the last owner cannot lose it
(409 last_owner). The member’s access tokens issued before the change
are invalidated, so the new role applies at their next refresh.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
{ "role": "admin"}Responses
Section titled “ Responses ”The updated member.
object
object
Example
{ "member": { "id": "usr_01J9Y", "email": "teammate@example.com", "name": "Grace Hopper", "role": "admin", "last_login_at": null, "created_at": 1760000000000 }}The request was malformed or failed validation.
object
Example
{ "error": "invalid_request", "code": "invalid_request", "message": "asset_id is required"}Missing or invalid credentials.
object
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).
object
Example
{ "error": "forbidden", "code": "forbidden", "message": "Missing required scope: write"}The resource does not exist in the tenant, or the route is unknown.
object
Example
{ "error": "not_found", "code": "not_found", "message": "Asset not found"}The request conflicts with the resource’s current state.
object
Example
{ "error": "upload_in_progress", "code": "upload_in_progress", "message": "An upload is already in progress for this asset"}Too many requests in the current window.
object
Example
{ "error": "rate_limited", "code": "rate_limited", "message": "Too many requests", "details": { "retry_after": 60 }}Headers
Section titled “Headers”Seconds to wait before retrying.