Git credentials

Update a git credential

PUT
/v1/orgs/{org}/projects/{project}/git-credentials/{credId}
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
Length1 <= length <= 128
forge*string

Git forge this credential authenticates against

Value in"github" | "gitlab"
repository_ids*array<string>|

IDs of the project repositories this token unlocks

Items1 <= items
token?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"  }}