Practice Catalog
Create a new practice definition
post/workspaces/{workspaceSlug}/practices
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /workspaces/{workspaceSlug}/practices
- Auth: HTTP bearer
Path parameters
workspaceSlugstring required
Workspace slug
Request body
Example request
{
"automatedReviewPolicy": {
"insufficiencyReason": {
"code": "RUNTIME_BEHAVIOR_NOT_OBSERVED"
},
"knownLimitations": [
{
"code": "RUNTIME_BEHAVIOR_NOT_OBSERVED"
}
]
},
"name": "PR Description Quality",
"slug": "pr-description-quality"
}Response
Practice created
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
No recorded changes to this operation across all 1 revision of this API.