Save the user prompt layer; applies to sessions started after the save [write]

Changed on

Pass expectedVersion from the agent promptVersion to reject a stale save with 409 version_conflict. Null expects no saved prompt. Omit for legacy unconditional saves.

put/agents/{id}/prompt

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/agents/{id}/prompt
  • Auth
    HTTP bearer

Path parameters

idstring required

The agent id (agent_…)

Request body

promptstring required
expectedVersioninteger nullable

Response

OK

versioninteger
unchangedboolean

Content identical to the active version

Changes

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status

    • info

      the response property became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status