Skip to main content
POST
cURL
Puts the entity in the lowest free seat of the customer’s license of the seat plan planId, and answers { planId, entityId, slot }. The entity then spends the seat plan’s credits as its own for the rest of the billing period, before the shared pool; the customer and other entities can’t spend them. A seat another entity held earlier this period carries what was left of it, so releasing and assigning again never resets the allowance. An entity that already holds a seat of this license gets the same seat back, and nothing more is granted. Every seat held: 409 no_seats_available. No live license of the seat plan: 404 license_not_found. An unknown or deleted entity: 404 entity_not_found. Assigning changes nothing the customer pays. Needs the Billing permission.

Authorizations

Authorization
string
header
required

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

Body

application/json
customerId
string
required

Your ID for the customer, such as your user ID.

Required string length: 1 - 255
planId
string
required

The seat plan whose seat to assign or release: a plan the customer's plan sells seats of (its licenses).

Required string length: 1 - 255
Example:

"seat"

entityId
string
required

Your ID for the user, seat or workspace inside the customer.

Required string length: 1 - 255
Example:

"alice"

Response

The seat the entity holds: a free one now, or the one it already held. Its seat plan's credits and metered allowances are the entity's to spend this period, less what earlier holders spent of this seat.

planId
string
required

The seat plan.

entityId
string
required
slot
integer
required

Which of the license's seats, numbered from 1. An entity keeps its slot until it's released.