POST
/metrics
curl \
--request POST 'https://api.visible.vc/metrics' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"metric":{"name":"Revenue","unit":"USD","frequency":"monthly","company_id":"c85cb869-40c0-4b8f-829a-30cdeb673ce0"}}'
Request example
{
"metric": {
"name": "Revenue",
"unit": "USD",
"frequency": "monthly",
"company_id": "c85cb869-40c0-4b8f-829a-30cdeb673ce0"
}
}
Response examples (201)
{
"metric": {
"id": "3c5728ed-a09e-4245-bb33-459b67600be3",
"name": "Revenue",
"unit": "USD",
"frequency": "monthly",
"company_id": "c85cb869-40c0-4b8f-829a-30cdeb673ce0",
"created_at": "2018-08-05T08:40:51.620Z",
"portfolio_company_profile_id": "ec5252fe-9abc-4096-85e9-1374e70a3182"
}
}
Response examples (400)
{
"errors": [
{
"type": "parameter_invalid",
"field": "filter",
"message": "must be an object"
}
]
}
Response examples (401)
{
"errors": [
{
"type": "unauthorized"
}
]
}
Response examples (422)
{
"errors": [
{
"type": "attribute_invalid",
"field": "value",
"message": "required"
}
]
}
Response examples (429)
{
"errors": [
{
"type": "rate_limit_exceeded"
}
]
}