customAgents
Restores a previous system prompt version.
Changed onRestores a saved system prompt version as the agent's current prompt. The restore records a new history version and returns that version. Use the system prompt versions endpoint to find a version id. <Check title="Required Permissions" icon="key">The user must have manage access to the agent.</Check>
post/agents/{agentId}/systempromptversions/{systemPromptVersionId}/restore
Request
- Base URLhttps://api.awork.com/api/v1
- URLhttps://api.awork.com/api/v1/agents/{agentId}/systempromptversions/{systemPromptVersionId}/restore
- AuthHTTP bearer
Path parameters
agentIdstring uuid required
The agent id.
systemPromptVersionIdstring uuid required
The prompt version id.
Response
OK
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
oauth2was added to the API
- warning
- info
endpoint added
- info