Skip to main content
POST
/
customers
/
{customer_id}
/
entities
import { Autumn as autumn } from 'autumn-js';

const entity = await autumn.entities.create('user_123', {
feature_id: 'seats',
id: 'seat_456',
name: 'Brandon Yeo'
});
You can create multiple entities at once by passing an array of entities.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_id
string
required

The unique identifier of the customer

Body

application/json · object[]
id
string
required

Your unique identifier for the entity (eg, a seat ID)

feature_id
string
required

The feature ID associated with this entity (eg, seats). When an entity is created, a usage event will be recorded for this feature.

name
string
required

A name or identifier for the entity (e.g., an email address)