Skip to content

Update the workspace custom prompt

PUT
/api/workspaces/{workspaceId}/custom-prompt
curl --request PUT \
--url http://localhost:8080/api/workspaces/example/custom-prompt \
--header 'Content-Type: application/json' \
--cookie auth_session=<auth_session> \
--data '{ "content": "example" }'
workspaceId
required
string
Media typeapplication/json
object
content
required

Custom prompt markdown content

string

Example generated

{
"content": "example"
}

Custom prompt updated.

Media typeapplication/json
object
success
required
boolean
message
required
string

Example

{
"success": true
}

Invalid request

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 update custom prompt

Media typeapplication/json
object
success
boolean
error
required
string

Example

{
"error": "Human-readable error message"
}