v0 Platform API/API Reference/Projects
Assign Project to Chat
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
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.