Assign Project to Chat

Links an existing v0 project to a specific chat. Helps group conversations under a shared project context.

POST /projects/{projectId}/assign
import { v0 } from 'v0-sdk'

const result = await v0.projects.assign({
  projectId: '123',
  chatId: '123',
})

console.log(result)
POST /projects/{projectId}/assign
curl -X POST https://api.v0.dev/projects/123/assign \
  -H "Authorization: Bearer $V0_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "chatId": "123"
  }'

Parameters

Path Parameters

projectId string Required

The ID of the project to assign.


Request Body

chatId string Required

The ID of the chat to assign the project to.


Response

Response Body

object string Required


id string Required


assigned boolean Required