Data Sources

Update Data Source

PATCH
/v0/projects/{idOrSlug}/data-sources/{dataSourceId}

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string
dataSourceId*string

Request Body

application/json
  1. body
name?string|null
referenceId?|null
dataType?|null
description?string|null|null
regex?string|null|null
allowNegative?boolean|null|null
allowFloat?boolean|null|null
minValue?number|null|null
maxValue?number|null|null
isArray?boolean|null
metricShape*string
Value in"scalar""array""map"

Response Body

DataSourceRecord

application/json
  1. response
id*string
projectId*string
name*string
description*string|null
referenceId*string
dataType*string
Value in"number""string""boolean""json"
regex*string|null
allowNegative*boolean|null
allowFloat*boolean|null
minValue*number||null
maxValue*number||null
isArray*boolean
metricShape*string
Value in"scalar""array""map"
createdAt*string
updatedAt*string
curl -X PATCH "https://example.com/v0/projects/string/data-sources/string" \  -H "Content-Type: application/json" \  -d '{    "metricShape": "scalar"  }'
{  "id": "string",  "projectId": "string",  "name": "string",  "description": "string",  "referenceId": "string",  "dataType": "number",  "regex": "string",  "allowNegative": true,  "allowFloat": true,  "minValue": 0,  "maxValue": 0,  "isArray": true,  "metricShape": "scalar",  "createdAt": "string",  "updatedAt": "string"}