Components
Update component
Changed onReplace a Component's definition. Takes the same fields as create and fully replaces the existing definition; the Component's id and creator are preserved. Requires admin access to the Project, and the Project must have Components enabled.
put/gh/{ownerKeyOrId}/projects/{projectKeyOrId}/components/{componentIdOrName}
Request
- Base URLhttps://api.qlty.sh
- AuthHTTP bearer
Path parameters
ownerKeyOrIdstring required
Repository owner name (login) or workspace ID
Example:acme-corp
projectKeyOrIdstring required
Repository name or project ID
Example:my-repo
componentIdOrNamestring required
Component ID or name
Example:backend-api
Request body
Example request
{
"name": "Backend API",
"description": "Core backend API services",
"pathGlobs": [
"src/api/*"
]
}Response
The updated component
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Backend API",
"description": "Core backend API services",
"pathGlobs": [
"src/api/*"
]
}Changes
- breaking
the
request property's minItems was increased to1 - breaking
the
request property type changed fromstringtoarray - breaking
the
response's property type changed fromstringtoarrayfor status - info
the
request property's minLength was decreased from1to0
- breaking
- info
endpoint added
- info