Skip to main content

Create a scorecard

POST 

/v1/blueprints/:blueprint_identifier/scorecards

This route allows you to create a scorecard for a given blueprint. A scorecard is a set of rules that define the quality of a blueprint.

To learn more about scorecards, check out the documentation.

Request

Path Parameters

    blueprint_identifier stringrequired

    The identifier of the blueprint you want to run scorecards for.

Body

required

    identifier stringrequired

    Possible values: Value must match regular expression ^[A-Za-z0-9@_.:\\/=-]+$

    A unique identifier for the scorecard.

    title stringrequired

    The title of the scorecard.

    filter

    object

    An optional set of conditions to filter entities that will be evaluated by the scorecard.

    combinator stringrequired

    Possible values: [and, or]

    The combinator to use when evaluating the conditions.

    conditions

    object[]

    required

    Possible values: >= 1

    The conditions to evaluate.

  • Array [

  • anyOf

    property stringrequired
    operator stringrequired

    Possible values: [=, !=, >, <, >=, <=, contains, doesNotContains, beginsWith, doesNotBeginsWith, endsWith, doesNotEndsWith]

    value

    object

    required

    oneOf

    string

  • ]

  • rules

    object[]

    required

    The rules that define the scorecard.

  • Array [

  • identifier stringrequired

    Possible values: Value must match regular expression ^[A-Za-z0-9@_=\\-]+$

    title stringrequired
    description string
    level stringrequired

    Possible values: [Gold, Silver, Bronze]

    query

    object

    required

    combinator stringrequired

    Possible values: [and, or]

    conditions

    object[]

    required

    Possible values: >= 1

  • Array [

  • anyOf

    property stringrequired
    operator stringrequired

    Possible values: [=, !=, >, <, >=, <=, contains, doesNotContains, beginsWith, doesNotBeginsWith, endsWith, doesNotEndsWith]

    value

    object

    required

    oneOf

    string

  • ]

  • ]

Responses

Default Response

Loading...