Skip to main content
PATCH
Change a target's profile

Headers

Authorization
string | null

Bearer token with API key

Path Parameters

model_id
string
required

Body

application/json

Change content fields of a target's profile by name.

changes
ApiTargetProfileChanges · object
required

Content fields to change, by name: every field auto-discovery merges.

A field left out stays as it is. Null empties text that may be empty (system_prompt, user_access, test_account, public_data) and sets multi_agent or has_persistent_memory back to unknown; any other field needs a value. A list is replaced whole, so send every item to keep. Only what the change alters becomes the customer's.

version
integer | null

The version the change starts from, from the last read. Leave it and profile_id out only to create the profile of a target that has none.

profile_id
string | null

The profile_id of the last read, sent with the version: a profile deleted and made again starts its versions over, so the pair names the copy the change was built from.

Response

Successful Response

What a change answers: which profile, and the version it is at now.

Not the content: a key allowed to write is not always allowed to read, and the content is one read away for a key that is.

model_id
string
required
profile_id
string
required
version
integer
required

The profile's version now; send it with the next change.