Skip to content

Trigger schema update

POST
/api/v1/flocks/{identifier}/schemas

Trigger a schema update for the flock. This updates the flock’s Elasticsearch schema and related configurations.

identifier
required
string
Example
myflock

Flock identifier (bucket name)

object
dry_run

Preview changes without applying

boolean
default: true

Schema update result

object
data
object
success
boolean
dry_run
boolean
schemas_applied
Array<string>
errors
Array<string>

Bad request - invalid input

object
error
object
code

Error code

string
Allowed values: BAD_REQUEST UNAUTHORIZED NOT_FOUND CONFLICT INTERNAL_ERROR
message

Human-readable error message

string

Unauthorized - missing or invalid credentials

object
error
object
code

Error code

string
Allowed values: BAD_REQUEST UNAUTHORIZED NOT_FOUND CONFLICT INTERNAL_ERROR
message

Human-readable error message

string

Resource not found

object
error
object
code

Error code

string
Allowed values: BAD_REQUEST UNAUTHORIZED NOT_FOUND CONFLICT INTERNAL_ERROR
message

Human-readable error message

string