POST /unit_of_measurements/create

POST /unit_of_measurements/create

Create unit of measurement

Body Required

Responses

POST /unit_of_measurements/create
curl \
 -X POST https://api.cosmily.com/api/v1/unit_of_measurements/create \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"singular_measurement":"string","plural_measurement":"string"}'
Request example
{
  "singular_measurement": "string",
  "plural_measurement": "string"
}
Request examples
{
  "singular_measurement": "string",
  "plural_measurement": "string"
}
Response examples (201)
{
  "data": {
    "id": 42,
    "measurement": "string",
    "singular_display": "string",
    "plural_display": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}
Response examples (201)
{
  "data": {
    "id": 42,
    "measurement": "string",
    "singular_display": "string",
    "plural_display": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}