Skip to content

Drop uploaded files and return to upload step

POST
/api/intake/{conversation_id}/reset-files
curl --request POST \
--url https://example.com/api/intake/example/reset-files \
--header 'Authorization: Bearer <token>'

Powers the ‘Change documents’ affordance on the pre-generation screen. Clears uploaded files (state, filesystem, Redis blobs) and transitions the conversation back to ‘collecting_files’ so the user can re-upload. Preserves deal name and any context already provided. Valid from pre-generation states and from ‘error’ (post-cancel).

conversation_id
required
Conversation Id
string

Successful Response

Media type application/json
ResetFilesResponse
object
conversation_id
required
Conversation Id
string
success
required
Success
boolean
message
Any of:
string
conversation_state
Any of:
ConversationStateSnapshot

Compact state object included in mutation responses so the frontend can update its wizard without a separate /status poll.

object
status
required
Status
string
file_count
File Count
integer
0
has_deal_name
Has Deal Name
boolean
deal_name
Any of:
string
progress_step
Progress Step
string
default: Unknown
next_action
Any of:
string
files_summary
Any of:
string
suggested_deal_name
Any of:
string
deal_name_confidence
Any of:
number
suggested_name_parts
Any of:
object
key
additional properties
Any of:
string
deal_name_extraction
Any of:
object
key
additional properties
any
Example
{
"conversation_state": {
"file_count": 0,
"has_deal_name": false,
"progress_step": "Unknown"
}
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}