Skip to content

Apply Accepted Suggestions

POST
/api/creative/edit/suggestions/{session_id}/apply

Apply all accepted suggestions to their documents.

Uses paragraph-scoped replacement to avoid corrupting adjacent suggestions when the same text appears multiple times in a document.

session_id
required
Session Id
string

Successful Response

ApplyResponse

Response from applying accepted suggestions.

object
applied
required
Applied
integer
skippedDocumentIds
required
Skippeddocumentids
Array<string>

Validation Error

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