Create Computation Edition
If-Match carries the edition of the slice the range starts in, as read. A satellite not yet written is created by a PUT with If-None-Match: * instead, on a range that runs to 9999-12-31. The response’s ETag is the edition written.
Authorizations
Get token from Auth0 and paste it here
Headers
The person acting through the access credential, recorded as created_by of what the request writes. Audit only: access is checked on the credential.
1 - 255Body
- FixedSpec
- PercentOfSpec
- PercentOfParamSpec
- LookupParamSpec
- WageTypeRefSpec
- TieredSpec
- CappedSpec
- ConditionalSpec
- SumSpec
- SubtractSpec
- MultiplySpec
- DivideSpec
- MinSpec
- MaxSpec
- RoundSpec
Codes whose amounts the computation reads
Decimal places the result is rounded to; null leaves rounding to the computation itself
0 <= x <= 6The eight rounding modes from Python's decimal module.
A closed mathematical set: every value maps 1:1 to a decimal.ROUND_*
constant, exposed via :attr:decimal_mode. Exposing all eight once keeps
the set stable — a country needing e.g. HALF_DOWN never forces a
library release. (Nearest-multiple rounding — Swiss 0.05, Swedish öre — is
not a decimal mode and needs a richer Round, not a new member.)
HALF_UP, HALF_DOWN, HALF_EVEN, UP, DOWN, CEILING, FLOOR, ZERO_FIVE_UP Response
Successful Response
- FixedSpec
- PercentOfSpec
- PercentOfParamSpec
- LookupParamSpec
- WageTypeRefSpec
- TieredSpec
- CappedSpec
- ConditionalSpec
- SumSpec
- SubtractSpec
- MultiplySpec
- DivideSpec
- MinSpec
- MaxSpec
- RoundSpec
Who wrote the edition: the acting user (X-Acting-User, else the access credential), system for our own writes, or <authority>:<notice> for a write on an authority's behalf, e.g. hmrc:P6.
Codes whose amounts the computation reads
Decimal places the result is rounded to; null leaves rounding to the computation itself
0 <= x <= 6The eight rounding modes from Python's decimal module.
A closed mathematical set: every value maps 1:1 to a decimal.ROUND_*
constant, exposed via :attr:decimal_mode. Exposing all eight once keeps
the set stable — a country needing e.g. HALF_DOWN never forces a
library release. (Nearest-multiple rounding — Swiss 0.05, Swedish öre — is
not a decimal mode and needs a richer Round, not a new member.)
HALF_UP, HALF_DOWN, HALF_EVEN, UP, DOWN, CEILING, FLOOR, ZERO_FIVE_UP Paths into computation that a write may not change; * locks the whole computation and depends_on