Skip to content

Regenerate Webhook Secret

POST
/api/repositories/{repository_id}/webhook-secret
curl --request POST \
--url https://kelpie.example.com/api/repositories/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/webhook-secret
repository_id
required
Repository Id
string format: uuid

Successful Response

Media typeapplication/json
RepositoryOut
object
id
required
Id
string format: uuid
name
required
Name
string
url
required
Url
string
branch
required
Branch
string
stacks_root
required
Stacks Root
string
auth
required
GitAuth
string
Allowed values: none ssh token
ssh_public_key
required
Ssh Public Key
Any of:
string
has_token
required
Has Token
boolean
webhook_path
required
Webhook Path
string
webhook_secret
required
Webhook Secret
string
poll_interval
required
Poll Interval
integer
default_deploy_mode
required
DeployMode
string
Allowed values: auto approve manual
default_edit_mode
required
EditMode
string
Allowed values: commit pr
forge
required
Forge
string
Allowed values: none github gitlab gitea
forge_api_url
required
Forge Api Url
Any of:
string
has_forge_token
required
Has Forge Token
boolean
forge_token_expires_at
required
Forge Token Expires At
Any of:
string format: date-time
forge_token_checked_at
required
Forge Token Checked At
Any of:
string format: date-time
forge_token_error
required
Forge Token Error
Any of:
string
created_at
required
Created At
string format: date-time
last_synced_at
required
Last Synced At
Any of:
string format: date-time
last_commit
required
Last Commit
Any of:
string
last_error
required
Last Error
Any of:
string
stack_count
required
Stack Count
integer

Example

{
"auth": "none",
"default_deploy_mode": "auto",
"default_edit_mode": "commit",
"forge": "none"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}