Skip to content

Reset the workspace custom prompt

POST
/api/workspaces/{workspaceId}/custom-prompt/reset
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.

workspaceId
required
string

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"
}