Author a slice
Saving a slice returns the samematched + scope_warnings you get from a
preview, so you confirm it resolves before you rely on it.
List, read, promote
Method reference
| Method | REST | Description |
|---|---|---|
pb.slices.create(name, scope) | POST /v1/slices | Save a scope; returns matched + warnings. |
pb.slices.list(options?) | GET /v1/slices | List slices in scope. |
pb.slices.get(id) | GET /v1/slices/{id} | Read a slice (live member count). |
pb.slices.update(id, input) | PATCH /v1/slices/{id} | Update a slice. |
pb.slices.promote(id) / demote(id) | POST /v1/slices/{id}/promote | Promote to / demote from a durable lens. |
Compile a slice
Pass a slice intopb.context.compile to turn it into context.
Related
Context
The scope grammar, preview, and compile.
CQL
Write scopes as a terse string.