Update Deal Document
PUT /deals/{deal_id}/documents/{document_id}
Edit a generated document by hand.
Keyed by document ID, not by type - this is the one place the two
identifier spaces differ, and it is why the type-keyed routes live under
/documents/types/.
An omitted field is left alone; structured_data REPLACES the stored
object rather than merging into it. A later regeneration OVERWRITES the
edit, so edit last.
Authorizations
Parameters
Path Parameters
Deal id (UUID).
Deal id (UUID).
Document id, from the list read.
Document id, from the list read.
Header Parameters
Request Body required
Edit a generated deal document in place.
Mirrors campaign_builder.models.deal_documents.UpdateDealDocumentRequest.
An omitted field is left alone; structured_data REPLACES the stored
object rather than merging into it.
Responses
200
Successful Response
object
An open envelope for one document, folder or questionnaire.
Open on purpose: a Library document carries extraction metadata, a
questionnaire carries per-provider processing detail, and a generated deal
document carries structured_data and highlights whose shape is the
generator’s rather than this contract’s. Pinning those would silently drop
whatever the app learned to return that this file had not caught up on.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error