Reset the workspace custom prompt
POST
/api/workspaces/{workspaceId}/custom-prompt/reset
const url = 'http://localhost:8080/api/workspaces/example/custom-prompt/reset';const options = {method: 'POST', headers: {cookie: 'auth_session=<auth_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/api/workspaces/example/custom-prompt/reset \ --cookie auth_session=<auth_session>Resets the workspace custom prompt to the default template.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
Responses
Section titled “Responses”Custom prompt reset.
Media typeapplication/json
object
success
required
boolean
message
required
string
content
required
string
Example
{ "success": true}Invalid workspace ID
Media typeapplication/json
object
success
boolean
error
required
string
Example
{ "error": "Human-readable error message"}Workspace not found
Media typeapplication/json
object
success
boolean
error
required
string
Example
{ "error": "Human-readable error message"}Connect a GitHub repository first (the prompt lives in the workspace repo).
Media typeapplication/json
object
success
required
boolean
error
required
string
code
required
string
Example
{ "success": false}Failed to reset custom prompt
Media typeapplication/json
object
success
boolean
error
required
string
Example
{ "error": "Human-readable error message"}