Practice Catalog
Update a practice
Changed onpatch/workspaces/{workspaceSlug}/practices/{practiceSlug}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /workspaces/{workspaceSlug}/practices/{practiceSlug}
- Auth: HTTP bearer
Path parameters
workspaceSlugstring required
Workspace slug
practiceSlugstring required
Request body
Example request
{
"automatedReviewPolicy": {
"insufficiencyReason": {
"code": "RUNTIME_BEHAVIOR_NOT_OBSERVED"
},
"knownLimitations": [
{
"code": "RUNTIME_BEHAVIOR_NOT_OBSERVED"
}
]
},
"group": {
"groupSlug": "review-ready-work"
},
"name": "PR Description Quality"
}Response
Practice updated
Example response
{
"artifactKind": "scm.pull_request",
"automatedReviewPolicy": {
"insufficiencyReason": {
"code": "RUNTIME_BEHAVIOR_NOT_OBSERVED"
},
"knownLimitations": [
{
"code": "RUNTIME_BEHAVIOR_NOT_OBSERVED"
}
]
},
"automatedReviewWithdrawal": {
"code": "RUNTIME_BEHAVIOR_NOT_OBSERVED"
}
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new
GUIDEenum value to the request property/ - info
added the new
VISUALenum value to the request property/ - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
for the
pathrequest parameterworkspaceSlug, the minLength was increased from0to3 - warning
for the
pathrequest parameterworkspaceSlug, the maxLength was set to51 - warning
changed the pattern of the
pathrequest parameterworkspaceSlugfrom^[a-z0-9][a-z0-9-]{2,50}$to^(?!.*--)[a-z0-9][a-z0-9-]{1,49}[a-z0-9]$
- breaking