This endpoint allows you to update specific fields of an objective using JSON Patch operations.
Note: The path
field is a JSON Pointer string that references a location within the target document where the operation is performed.
For example:
[
{ "op": "replace", "path": "/data/0/objective_name", "value": "updated_objective_name" },
{ "op": "replace", "path": "/data/0/objective_prompt", "value": "Updated prompt for the objective" },
{ "op": "replace", "path": "/data/0/confirmation_mode", "value": "manual" },
{ "op": "add", "path": "/data/0/output_variables", "value": ["new_variable"] },
{ "op": "replace", "path": "/data/0/modality", "value": "visual" },
{ "op": "remove", "path": "/data/0/callback_url" }
]
The unique identifier of the objective.
"o12345"
The body is of type object[]
.
Objective updated successfully
The response is of type object
.