Skip to main content
POST
/
api
/
v1
/
projects
/
{projectUuid}
/
git-integration
/
pull-requests
/
custom-metrics
cURL
curl --request POST \
  --url http://api/v1/projects/{projectUuid}/git-integration/pull-requests/custom-metrics \
  --header 'Content-Type: application/json' \
  --data '
{
  "quoteChar": "\"",
  "customMetrics": [
    {
      "label": "<string>",
      "type": "percentile",
      "description": "<string>",
      "sql": "<string>",
      "hidden": true,
      "round": 123,
      "compact": "thousands",
      "format": "km",
      "table": "<string>",
      "name": "<string>",
      "index": 123,
      "filters": [
        {
          "values": [
            "<any>"
          ],
          "operator": "isNull",
          "id": "<string>",
          "target": {
            "fieldRef": "<string>"
          },
          "settings": "<any>",
          "disabled": true,
          "required": true
        }
      ],
      "baseDimensionName": "<string>",
      "uuid": "<string>",
      "percentile": 123,
      "formatOptions": {
        "type": "default",
        "round": 123,
        "separator": "default",
        "currency": "<string>",
        "compact": "thousands",
        "prefix": "<string>",
        "suffix": "<string>",
        "timeInterval": "RAW",
        "custom": "<string>"
      }
    }
  ]
}
'
{
  "results": {
    "prUrl": "<string>",
    "prTitle": "<string>"
  },
  "status": "ok"
}

Path Parameters

projectUuid
string
required

Body

application/json
customMetrics
object[]
required
quoteChar
enum<string>
Available options:
",
'

Response

Success

results
object
required
status
enum<string>
required
Available options:
ok