Git credentials
Update a git credential
Authorization
apiKey AuthorizationBearer <token>
API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
org*string
project*string
credId*string
Query Parameters
scope*string
Scope of the credential to update
Value in
"project" | "personal"Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
display_name*string
Length
1 <= length <= 128forge*string
Git forge this credential authenticates against
Value in
"github" | "gitlab"repository_ids*array<string>|
IDs of the project repositories this token unlocks
Items
1 <= itemstoken?string
New personal access token (write-only); leave empty to keep the current token
Response Body
application/json
application/problem+json
curl -X PUT "https://api-dev.tektona.ai/v1/orgs/string/projects/string/git-credentials/string?scope=project" \ -H "Content-Type: application/json" \ -d '{ "display_name": "string", "forge": "github", "repository_ids": [ "string" ] }'{ "$schema": "https://api-dev.tektona.ai/schemas/GitCredentialUpdateBody.json", "credential": { "created_at": "string", "display_name": "string", "forge": "github", "id": "string", "name": "string", "owner_user_id": "string", "repos": [ { "name": "string", "repository_id": "string", "url": "string" } ], "scope": "project", "updated_at": "string" }}{ "$schema": "https://api-dev.tektona.ai/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}