POST
/
company-overrides
curl --request POST \
  --url https://api.schematichq.com/company-overrides \
  --header 'Content-Type: application/json' \
  --header 'X-Schematic-Api-Key: <api-key>' \
  --data '{
  "company_id": "<string>",
  "feature_id": "<string>",
  "metric_period": "current_month",
  "value_bool": true,
  "value_numeric": 123,
  "value_trait_id": "<string>",
  "value_type": "boolean"
}'
{
  "data": {
    "company": {
      "created_at": "2023-11-07T05:31:56Z",
      "entity_traits": [
        {
          "created_at": "2023-11-07T05:31:56Z",
          "definition": {
            "created_at": "2023-11-07T05:31:56Z",
            "display_name": "<string>",
            "entity_type": "<string>",
            "hierarchy": [
              "<string>"
            ],
            "id": "<string>",
            "trait_type": "<string>",
            "updated_at": "2023-11-07T05:31:56Z"
          },
          "definition_id": "<string>",
          "environment_id": "<string>",
          "id": "<string>",
          "updated_at": "2023-11-07T05:31:56Z",
          "value": "<string>"
        }
      ],
      "environment_id": "<string>",
      "id": "<string>",
      "keys": [
        {
          "created_at": "2023-11-07T05:31:56Z",
          "definition": {
            "created_at": "2023-11-07T05:31:56Z",
            "entity_type": "<string>",
            "id": "<string>",
            "key": "<string>",
            "updated_at": "2023-11-07T05:31:56Z"
          },
          "definition_id": "<string>",
          "entity_id": "<string>",
          "entity_type": "<string>",
          "environment_id": "<string>",
          "id": "<string>",
          "key": "<string>",
          "updated_at": "2023-11-07T05:31:56Z",
          "value": "<string>"
        }
      ],
      "last_seen_at": "2023-11-07T05:31:56Z",
      "logo_url": "<string>",
      "name": "<string>",
      "plans": [
        {
          "id": "<string>",
          "image_url": "<string>",
          "name": "<string>"
        }
      ],
      "traits": {},
      "updated_at": "2023-11-07T05:31:56Z",
      "user_count": 123
    },
    "company_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "environment_id": "<string>",
    "feature": {
      "created_at": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "event_subtype": "<string>",
      "feature_type": "<string>",
      "id": "<string>",
      "lifecycle_phase": "<string>",
      "name": "<string>",
      "trait_id": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "feature_id": "<string>",
    "id": "<string>",
    "metric_period": "<string>",
    "rule_id": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "value_bool": true,
    "value_numeric": 123,
    "value_trait": {
      "created_at": "2023-11-07T05:31:56Z",
      "display_name": "<string>",
      "entity_type": "<string>",
      "hierarchy": [
        "<string>"
      ],
      "id": "<string>",
      "trait_type": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "value_trait_id": "<string>",
    "value_type": "<string>"
  },
  "params": {}
}

Authorizations

X-Schematic-Api-Key
string
headerrequired

Body

application/json
company_id
string
required
feature_id
string
required
metric_period
enum<string> | null
Available options:
current_month,
current_week,
current_day
value_bool
boolean | null
value_numeric
integer | null
value_trait_id
string | null
value_type
enum<string>
required
Available options:
boolean,
numeric,
trait,
unlimited

Response

201 - application/json
data
object
required

The updated resource

params
object
required

Input parameters