target-profile

Change a target's profile

Change content fields by name in changes. A field left out stays as it is; null empties text that may be empty and sets multi_agent or has_persistent_memory back to unknown. A list is replaced whole. Only what the change alters becomes the customer's, and it applies at once. Send the profile_id and version from the last read; leave both out to create the profile of a target that has none. Ids, who wrote what and dismissals cannot be written, and a value that still holds an [UNTRUSTED:…] fence is refused. Answers with the profile's id and new version; read the profile for its content.

patch/api/v1/model/{model_id}/profile

Request

  • Base URL: https://api.enokilabs.ai
  • URL: https://api.enokilabs.ai/api/v1/model/{model_id}/profile
  • Auth: none declared

Path parameters

model_idstring required

Headers

Authorizationstring nullable

Bearer token with API key

Request body

versioninteger nullable

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_idstring nullable

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

model_idstring required
profile_idstring required
versioninteger required

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

Changes

No recorded changes to this operation across all 1 revision of this API.