http
PATCH /projects/{project_reference}/ownerTransfers project ownership from the calling owner to another existing member and demotes the previous owner to admin. Requires project.members.manage.
Servers
JSON
1[2 {3 "url": "https://api.veryfront.com"4 }5]Authentication
JSON
1[2 {3 "bearerAuth": []4 },5 {6 "apiKeyAuth": []7 }8]JSON
1{2 "bearerAuth": {3 "type": "http",4 "scheme": "bearer",5 "bearerFormat": "JWT or API Key",6 "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."7 },8 "apiKeyAuth": {9 "type": "apiKey",10 "in": "header",11 "name": "X-API-Key",12 "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."13 }14}Parameters
| Name | Location | Required | Description |
|---|---|---|---|
| project_reference | path | Yes | Project slug, UUID, or domain that identifies the project. |
Parameter contracts
JSON
1[2 {3 "schema": {4 "$ref": "#/components/schemas/ProjectReference"5 },6 "required": true,7 "description": "Project slug, UUID, or domain that identifies the project.",8 "name": "project_reference",9 "in": "path"10 }11]Request body
JSON
1{2 "required": true,3 "content": {4 "application/json": {5 "schema": {6 "type": "object",7 "properties": {8 "user_id": {9 "type": "string",10 "format": "uuid",11 "description": "Existing member who becomes owner; must differ from the current owner. The previous owner becomes admin."12 }13 },14 "required": [15 "user_id"16 ]17 }18 }19 }20}Responses
200
The new owner. Previous owners become admins, and the new owner member AI budget is removed.
JSON
1{2 "description": "The new owner. Previous owners become admins, and the new owner member AI budget is removed.",3 "content": {4 "application/json": {5 "schema": {6 "type": "object",7 "properties": {8 "user_id": {9 "type": "string",10 "format": "uuid",11 "description": "User ID of the project member."12 },13 "email": {14 "type": "string",15 "description": "Email address of the member."16 },17 "name": {18 "type": [19 "string",20 "null"21 ],22 "description": "Display name of the member; null when the member has none."23 },24 "avatar_src": {25 "type": [26 "string",27 "null"28 ],29 "description": "Avatar URL of the member; null when the member has none."30 },31 "role": {32 "type": "string",33 "enum": [34 "owner",35 "admin",36 "editor",37 "viewer"38 ],39 "description": "Project role of the member: owner, admin, editor or viewer."40 },41 "source": {42 "type": "string",43 "enum": [44 "project",45 "account"46 ],47 "description": "Where the access comes from: project (a project membership; role is the project role) or account (an owner or admin of the account that owns the project; role is the account role, managed on the account)."48 },49 "capabilities": {50 "type": "array",51 "items": {52 "type": "string",53 "enum": [54 "project.read",55 "project.settings.manage",56 "project.delete",57 "project.members.read",58 "project.members.manage",59 "project.invites.read",60 "project.invites.manage",61 "project.files.read",62 "project.files.write",63 "project.realtime.connect",64 "project.realtime.write",65 "project.files.admin",66 "project.uploads.read",67 "project.uploads.write",68 "project.uploads.admin",69 "project.knowledge.read",70 "project.knowledge.write",71 "project.releases.read",72 "project.releases.write",73 "project.deployments.read",74 "project.deployments.write",75 "project.deploy.execute",76 "project.runtime.manage",77 "project.channels.read",78 "project.channels.write",79 "project.sandboxes.manage",80 "project.domains.write",81 "project.environments.manage",82 "project.env_vars.write",83 "project.runs.read",84 "project.runs.write",85 "project.runs.admin",86 "project.approvals.decide",87 "project.agents.read",88 "project.agents.write",89 "project.evals.read",90 "project.evals.write",91 "project.evals.run",92 "project.conversations.read",93 "project.conversations.write",94 "project.conversations.create",95 "project.integrations.read",96 "project.integrations.connect",97 "project.integrations.configure",98 "project.api_keys.read",99 "project.api_keys.manage",100 "project.cache.read",101 "project.cache.write",102 "project.logs.read",103 "project.metrics.read",104 "project.resources.read"105 ]106 },107 "description": "Project capabilities the role grants, as the permission checks resolve them."108 }109 },110 "required": [111 "user_id",112 "email",113 "name",114 "avatar_src",115 "role",116 "source",117 "capabilities"118 ]119 }120 }121 }122}400
Invalid user ID, the project has no current owner, or the user already owns it
JSON
1{2 "description": "Invalid user ID, the project has no current owner, or the user already owns it",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}401
Unauthorized
JSON
1{2 "description": "Unauthorized",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}403
Forbidden - insufficient permissions, the caller is not the current owner, or the project is system-managed
JSON
1{2 "description": "Forbidden - insufficient permissions, the caller is not the current owner, or the project is system-managed",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}404
Project or member not found
JSON
1{2 "description": "Project or member not found",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}413
Payload too large
JSON
1{2 "description": "Payload too large",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}500
Server error
JSON
1{2 "description": "Server error",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}503
internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.
JSON
1{2 "description": "internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.",3 "content": {4 "application/problem+json": {5 "schema": {6 "$ref": "#/components/schemas/Problem"7 }8 }9 }10}Referenced contracts
components/parameters/ProjectReference
JSON
1{2 "schema": {3 "$ref": "#/components/schemas/ProjectReference"4 },5 "required": true,6 "description": "Project slug, UUID, or domain that identifies the project.",7 "name": "project_reference",8 "in": "path"9}components/schemas/ProjectReference
JSON
1{2 "type": "string"3}components/schemas/Problem
JSON
1{2 "type": "object",3 "properties": {4 "cause": {5 "type": "string",6 "enum": [7 "schedule_concurrency_forbidden",8 "schedule_fire_in_progress",9 "schedule_run_limit_reached"10 ],11 "description": "Schedule admission refusal."12 },13 "idempotency": {14 "type": "object",15 "properties": {16 "state": {17 "type": "string",18 "enum": [19 "in_progress",20 "payload_mismatch",21 "outcome_unknown"22 ]23 },24 "operation": {25 "type": "string",26 "minLength": 127 },28 "retryable": {29 "type": "boolean"30 },31 "retry_after_seconds": {32 "type": [33 "integer",34 "null"35 ],36 "minimum": 037 },38 "expires_at": {39 "type": [40 "string",41 "null"42 ]43 },44 "recovery": {45 "type": "object",46 "properties": {47 "available": {48 "type": "boolean"49 },50 "description": {51 "type": "string"52 },53 "resource_url": {54 "type": "string"55 }56 },57 "required": [58 "available",59 "description"60 ]61 }62 },63 "required": [64 "state",65 "operation",66 "retryable",67 "retry_after_seconds",68 "expires_at"69 ],70 "description": "Replay status, retry timing, and recovery lookup."71 },72 "type": {73 "type": "string",74 "description": "URI reference identifying the problem type",75 "example": "https://api.veryfront.com/errors/validation-failed"76 },77 "title": {78 "type": "string",79 "description": "Short human-readable summary of the problem",80 "example": "Validation Failed"81 },82 "status": {83 "type": "integer",84 "minimum": 100,85 "maximum": 599,86 "description": "HTTP status code",87 "example": 40088 },89 "code": {90 "type": "string",91 "description": "Stable machine-readable error code",92 "example": "RUN_INVALID_INPUT"93 },94 "detail": {95 "type": "string",96 "description": "Human-readable explanation specific to this occurrence",97 "example": "The 'email' field must be a valid email address"98 },99 "instance": {100 "type": "string",101 "description": "URI reference identifying the specific occurrence",102 "example": "/projects/my-project/members"103 },104 "slug": {105 "type": "string",106 "description": "Stable identifier for the problem type",107 "example": "validation-failed"108 },109 "category": {110 "type": "string",111 "enum": [112 "AUTH",113 "RESOURCE",114 "VALIDATION",115 "DATABASE",116 "SUBSCRIPTION",117 "INTEGRATION",118 "INTERNAL"119 ],120 "description": "API error category",121 "example": "VALIDATION"122 },123 "suggestion": {124 "type": "string",125 "description": "Suggested action to resolve the problem",126 "example": "Check the request body and query parameters against the API documentation."127 },128 "errors": {129 "type": "array",130 "items": {131 "type": "object",132 "properties": {133 "field": {134 "type": "string",135 "description": "Field path that caused the error",136 "example": "email"137 },138 "message": {139 "type": "string",140 "description": "Error message for this field",141 "example": "Invalid email format"142 },143 "code": {144 "type": "string",145 "description": "Error code for this field",146 "example": "INVALID_FORMAT"147 }148 },149 "required": [150 "field",151 "message"152 ]153 },154 "description": "Detailed field-level errors for validation failures"155 }156 },157 "required": [158 "type",159 "title",160 "status"161 ]162}Operation contract
JSON
1{2 "operationId": "updateProjectOwner",3 "tags": [4 "identity-access/Users/Project members"5 ],6 "summary": "Update project owner",7 "description": "Transfers project ownership from the calling owner to another existing member and demotes the previous owner to admin. Requires project.members.manage.",8 "parameters": [9 {10 "$ref": "#/components/parameters/ProjectReference"11 }12 ],13 "requestBody": {14 "required": true,15 "content": {16 "application/json": {17 "schema": {18 "type": "object",19 "properties": {20 "user_id": {21 "type": "string",22 "format": "uuid",23 "description": "Existing member who becomes owner; must differ from the current owner. The previous owner becomes admin."24 }25 },26 "required": [27 "user_id"28 ]29 }30 }31 }32 },33 "responses": {34 "200": {35 "description": "The new owner. Previous owners become admins, and the new owner member AI budget is removed.",36 "content": {37 "application/json": {38 "schema": {39 "type": "object",40 "properties": {41 "user_id": {42 "type": "string",43 "format": "uuid",44 "description": "User ID of the project member."45 },46 "email": {47 "type": "string",48 "description": "Email address of the member."49 },50 "name": {51 "type": [52 "string",53 "null"54 ],55 "description": "Display name of the member; null when the member has none."56 },57 "avatar_src": {58 "type": [59 "string",60 "null"61 ],62 "description": "Avatar URL of the member; null when the member has none."63 },64 "role": {65 "type": "string",66 "enum": [67 "owner",68 "admin",69 "editor",70 "viewer"71 ],72 "description": "Project role of the member: owner, admin, editor or viewer."73 },74 "source": {75 "type": "string",76 "enum": [77 "project",78 "account"79 ],80 "description": "Where the access comes from: project (a project membership; role is the project role) or account (an owner or admin of the account that owns the project; role is the account role, managed on the account)."81 },82 "capabilities": {83 "type": "array",84 "items": {85 "type": "string",86 "enum": [87 "project.read",88 "project.settings.manage",89 "project.delete",90 "project.members.read",91 "project.members.manage",92 "project.invites.read",93 "project.invites.manage",94 "project.files.read",95 "project.files.write",96 "project.realtime.connect",97 "project.realtime.write",98 "project.files.admin",99 "project.uploads.read",100 "project.uploads.write",101 "project.uploads.admin",102 "project.knowledge.read",103 "project.knowledge.write",104 "project.releases.read",105 "project.releases.write",106 "project.deployments.read",107 "project.deployments.write",108 "project.deploy.execute",109 "project.runtime.manage",110 "project.channels.read",111 "project.channels.write",112 "project.sandboxes.manage",113 "project.domains.write",114 "project.environments.manage",115 "project.env_vars.write",116 "project.runs.read",117 "project.runs.write",118 "project.runs.admin",119 "project.approvals.decide",120 "project.agents.read",121 "project.agents.write",122 "project.evals.read",123 "project.evals.write",124 "project.evals.run",125 "project.conversations.read",126 "project.conversations.write",127 "project.conversations.create",128 "project.integrations.read",129 "project.integrations.connect",130 "project.integrations.configure",131 "project.api_keys.read",132 "project.api_keys.manage",133 "project.cache.read",134 "project.cache.write",135 "project.logs.read",136 "project.metrics.read",137 "project.resources.read"138 ]139 },140 "description": "Project capabilities the role grants, as the permission checks resolve them."141 }142 },143 "required": [144 "user_id",145 "email",146 "name",147 "avatar_src",148 "role",149 "source",150 "capabilities"151 ]152 }153 }154 }155 },156 "400": {157 "description": "Invalid user ID, the project has no current owner, or the user already owns it",158 "content": {159 "application/problem+json": {160 "schema": {161 "$ref": "#/components/schemas/Problem"162 }163 }164 }165 },166 "401": {167 "description": "Unauthorized",168 "content": {169 "application/problem+json": {170 "schema": {171 "$ref": "#/components/schemas/Problem"172 }173 }174 }175 },176 "403": {177 "description": "Forbidden - insufficient permissions, the caller is not the current owner, or the project is system-managed",178 "content": {179 "application/problem+json": {180 "schema": {181 "$ref": "#/components/schemas/Problem"182 }183 }184 }185 },186 "404": {187 "description": "Project or member not found",188 "content": {189 "application/problem+json": {190 "schema": {191 "$ref": "#/components/schemas/Problem"192 }193 }194 }195 },196 "413": {197 "description": "Payload too large",198 "content": {199 "application/problem+json": {200 "schema": {201 "$ref": "#/components/schemas/Problem"202 }203 }204 }205 },206 "500": {207 "description": "Server error",208 "content": {209 "application/problem+json": {210 "schema": {211 "$ref": "#/components/schemas/Problem"212 }213 }214 }215 },216 "503": {217 "description": "internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.",218 "content": {219 "application/problem+json": {220 "schema": {221 "$ref": "#/components/schemas/Problem"222 }223 }224 }225 }226 },227 "x-documentation-source-tag": "Project Ownership",228 "x-canonical-documentation": {229 "domain": "identity-access",230 "resource": "Users",231 "subgroup": "Project members",232 "name": "Update project owner",233 "description": "Transfers project ownership from the calling owner to another existing member and demotes the previous owner to admin. Requires project.members.manage.",234 "operationId": "updateProjectOwner"235 },236 "x-mint": {237 "href": "/cloud/rest/api-reference/identity-access-users-project-members/update-project-owner"238 }239}