v0 Platform APIAPI ReferenceProjects
Assign Project to ChatDeprecated
Links an existing v0 project to a specific chat. Helps group conversations under a shared project context.
POST/v1/projects/{projectId}/assign
Usage
TypeScript Example
import { v0 } from 'v0-sdk'const result = await v0.projects.assign({ projectId: '123', chatId: '123',})console.log(result)API Signature
Request
Path Parameters
projectId: string
The ID of the project to assign.
Body
chatId: string
The ID of the chat to assign the project to.
Response
object: 'project'
id: string
assigned: 'true'
Update Project
Updates the metadata of an existing project using its `projectId`. Supports changes to the project name and privacy setting.
Create Environment Variables
Creates new environment variables for a given project. This endpoint will fail if any of the specified environment variable keys already exist, unless upsert is set to true.