POST
/
users
curl --request POST \
  --url https://api.schematichq.com/users \
  --header 'Content-Type: application/json' \
  --header 'X-Schematic-Api-Key: <api-key>' \
  --data '{
  "company": {},
  "company_id": "<string>",
  "keys": {},
  "last_seen_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "traits": {},
  "update_only": true
}'
{
  "data": {
    "company_memberships": [
      {
        "company": {
          "created_at": "2023-11-07T05:31:56Z",
          "environment_id": "<string>",
          "id": "<string>",
          "last_seen_at": "2023-11-07T05:31:56Z",
          "logo_url": "<string>",
          "name": "<string>",
          "updated_at": "2023-11-07T05:31:56Z"
        },
        "company_id": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "id": "<string>",
        "updated_at": "2023-11-07T05:31:56Z",
        "user_id": "<string>"
      }
    ],
    "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",
    "name": "<string>",
    "traits": {},
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "params": {}
}

Authorizations

X-Schematic-Api-Key
string
headerrequired

Body

application/json
company
object
required

Optionally specify company using key/value pairs

company_id
string | null

Optionally specify company using Schematic company ID

keys
object
required
last_seen_at
string | null
name
string | null
traits
object

A map of trait names to trait values

update_only
boolean | null

Response

200 - application/json
data
object
required
params
object
required

Input parameters