Chats

Restores the files associated with an assistant message. The associated files must not already be the latest files in the chat.

post/chats/{chatId}/restore-message

Request

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

Path parameters

chatIdstring required

The unique identifier of the chat.

Request body

messageIdstring required

The unique identifier of the assistant message whose files to restore.

Response

The messages created to record the restore.

Changes

    • info

      response property messages/items/parts/items/oneOf[subschema #8]/data/anyOf[subschema #3]/requestedNpmRegistryIds deprecated

    • breaking

      added subschema #2 subschema #3 to the ////// response property oneOf list for the response status

    • info

      removed subschema #2 from the ////// response property oneOf list for the response status