Hyperscale docs Sign in Start building

Review an action without changing the record or moving money

product.objects.preview

Evaluates a draft against the retained agreement and caller. Returns missing information, blockers and projected money, state and clock changes.

POST /v1/products/{productId}/objects/{kind}/{objectId}/actions/{action}/preview

Scopes: product:read

Input

FieldTypeDescription
productId requiredstringHyperscale product ID
kind requiredstring
objectId requiredstring
action requiredstring
expectedRevisionintegerThe revision you read. Omit it to act on the record as it stands; send it to refuse if the record changed since.
productBuildIdstringOmit it to use the Build the target runs on: the agreement's own Build, or the current one for a new agreement.
digeststringOmit it with productBuildId; send both to pin what you read.
targetobjectOmit it to act on the attachment's one open agreement, or to open one when there is none. With several open, the action refuses with target_needs_instance and lists them. A non-create action sent to an attachment that has an open agreement refuses the same way.
fieldsobject
inputobject
onBehalfOfstringCustomer the Product key or a member session acts for. The call runs with that customer's accounts and keeps the operator's view of records.

Request sample

curl --request POST 'https://console.hyperscale0.ai/v1/products/{productId}/objects/{kind}/{objectId}/actions/{action}/preview' \
  --header "Authorization: Bearer $HYPERSCALE_API_KEY" \
  --header 'X-Hyperscale-Environment: sandbox' \
  --header 'Content-Type: application/json' \
  --data-raw '{}'

All operations