PATCH
/
v2
/
objectives
/
{objectives_id}
curl --request PATCH \
--url https://tavusapi.com/v2/objectives/{objectives_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '[
{
"op": "replace",
"path": "/objective_name",
"value": "updated_objective_name"
}
]'
{
  "message": "Objective updated successfully"
}

Authorizations

x-api-key
string
header
required

Path Parameters

objectives_id
string
required

The unique identifier of the objective.

Example:

"o12345"

Body

application/json · object[]
op
enum<string>
required

The operation to perform. Must be one of: add, remove, replace, copy, move, test

Available options:
add,
remove,
replace,
copy,
move,
test
Example:

"replace"

path
string
required

A JSON Pointer string that references a location within the target document where the operation is performed

Example:

"/objective_name"

value
any

The value to be used within the operation. This field is not required for the remove operation.

Response

Objective updated successfully

message
string

Success message

Example:

"Objective updated successfully"