Chats

Updates a chat's title, privacy, or metadata.

patch/chats/{chatId}

Request

  • Base URL
    https://api.v0.dev/v2
  • URL
    https://api.v0.dev/v2/chats/{chatId}
  • Auth
    HTTP bearer

Path parameters

chatIdstring required

The unique identifier of the chat.

Request body

titlestring

A new title to assign to the chat.

privacy'public' | 'private' | 'team' | 'team-edit' | 'unlisted'

Updated visibility setting for the chat.

metadataobject nullable

User-defined key-value metadata. Merged with existing entries. Pass null for a value to delete that key, or pass null for the whole field to delete all entries. Maximum 50 active entries.

Response

Response for status 200

idstring required

Unique chat identifier.

titlestring

Chat title, if generated.

privacy'public' | 'private' | 'team' | 'team-edit' | 'unlisted' required

Visibility setting of the chat.

createdAtstring date-time required

ISO timestamp of when the chat was created.

updatedAtstring date-time

ISO timestamp of when the chat was last updated.

authorIdstring required

ID of the user who created the chat.

vercelProjectIdstring

Associated Vercel project ID, if any.

metadataobject required

User-defined key-value metadata.

writePermissionboolean required

Whether the caller has write access to this chat.

Changes

    • breaking

      for the path request parameter chatId, the minLength was increased from 0 to 1

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the request property

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      the endpoint scheme security apiKey was removed from the API

    • info

      api tag Chats added

    • info

      api tag chats removed

    • info

      added the new optional request property

    • info

      added the media type application/x-www-form-urlencoded to the request body

    • info

      added the media type multipart/form-data to the request body

    • info

      the // request property's maxLength was increased from 40 to 50

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      the response's property pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ was added for the status

    • info

      response property title reactivated

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • warning

      added the new v0-opus-4.7-fast enum value to the / response property for the response status