Save the user prompt layer; applies to sessions started after the save [write]
Changed onPass 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 URLhttps://api.agentsky.dev/v1
- URLhttps://api.agentsky.dev/v1/agents/{id}/prompt
- AuthHTTP bearer
Path parameters
idstring required
The agent id (agent_…)
Request body
Response
OK
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
- info