align
default

πŸ‘€ Create a goal template.

Changed on
post/goal_template/create

Request

Request body

accountinteger required

Account identifier. That account will own the created goal template.

namestring required

Name of the template.

repositoriesRepositoryID[]

Set of repositories. An empty list raises a bad response 400. Duplicates are automatically ignored.

Example request

{
  "account": 30,
  "metric": "pr-review-time",
  "name": "My New Goal Template",
  "repositories": [
    "github.com/athenianco/api-spec",
    "github.com/athenianco/athenian-webapp"
  ]
}

Response

Identifier of the created goal template.

idinteger required

Identifier of the created entity.

Example response

{
  "id": 777
}

Changes

    • info

      added the new jira-acknowledge-time-below-threshold-ratio enum value to the request property ////

    • info

      added the new jira-life-time-below-threshold-ratio enum value to the request property ////

    • info

      added the new pr-cycle-time-below-threshold-ratio enum value to the request property ////

    • info

      added the new pr-live-cycle-count enum value to the request property ////

    • info

      added the new pr-live-cycle-count-q enum value to the request property ////

    • info

      added the new pr-live-cycle-time enum value to the request property ////

    • info

      added the new pr-merging-time-below-threshold-ratio enum value to the request property ////

    • info

      added the new pr-wip-time-below-threshold-ratio enum value to the request property ////