Change a git credential
Renames a credential, or replaces its user name, secret or known_hosts. Omitted fields keep their value; the kind cannot change.
Needs git.manage, which owners and admins hold. Not available to MCP clients or the assistant.
seylo_session<token>application/json- body
credentialId*stringPanel-issued id.
^[a-z0-9]{16}$name?string1 <= length <= 60username?|nulltoken?string1 <= length <= 1000privateKey?string^-----BEGIN [A-Z ]*PRIVATE KEY-----1 <= length <= 20000knownHosts?stringknown_hosts lines; empty uses the built-in keys of well-known hosts.
length <= 20000Success.
application/json- response
id*stringPanel-issued id.
^[a-z0-9]{16}$name*string1 <= length <= 60kind*string|stringhost*stringHost the credential is for, for example "gitlab.com" or "git.example.com:2222".
^[A-Za-z0-9.-]+(:[0-9]{1,5})?$1 <= length <= 253username*string|nullpublicKey*string|nullfingerprint*string|nullknownHosts*stringorigin*string|string|stringusedBy*integer0 <= valuecreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X POST 'https://example.com/api/v1/git.updateCredential' \ -H 'Content-Type: application/json' \ -d '{ "credentialId": "string"}'{ "id": "string", "name": "string", "kind": "token", "host": "string", "username": "string", "publicKey": "string", "fingerprint": "string", "knownHosts": "string", "origin": "manual", "usedBy": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Read a host's SSH keys GET
Connects to a git host over SSH (like ssh-keyscan) and returns its host keys as known_hosts lines with fingerprints, so a person can compare them before trusting them. Needs `git.manage`, which owners and admins hold. Available to MCP clients and the assistant.
List a repository's branches GET
Lists the branches of a repository through the App, default branch first. Needs `services.create` on the project. Available to MCP clients and the assistant.