Skip to navigation

Update an outcome definition

Changing the criteria, clocks, rules or dispute settings creates a new version that applies to outcome charges created from now on. Existing charges keep the terms of the version they were created under, and each charge records its version as evidence. Changing only name or metadata does not create a version. Each version records who made it.

Authentication

AuthorizationBearer

A secret key (rl_sk_test_..., rl_sk_live_...) or a restricted key with limited scopes (rl_rk_test_..., rl_rk_live_...). A restricted key can carry agent: true and an expires_at, and is what a coding agent should hold. Keys end in a checksum so secret scanners can recognize them. People create, roll and revoke keys in the dashboard; GET /v1/api_keys lists them, masked.

Path parameters

outcome_definitionstringRequired

The outcome definition ID (od_...) or key.

Request

This endpoint expects an object.
namestringOptional
criteriastringOptional<=2000 characters
presetstringOptional
Fills in the clocks and dispute settings you don't send in this request, as on create.
confirmation_windowstringOptional
reversal_horizonstringOptional
reversal_ruleslist of objectsOptional
Replaces the whole list.
dispute_settingsobjectOptional
metadatamap from strings to stringsOptional
Up to 50 keys of your own, with keys up to 40 characters and values up to 500 characters.

Response

The outcome definition at its new version.
idstring
object"outcome_definition"
keystring
namestring
event_namestring
criteriastring
versioninteger
Starts at 1 and goes up by one with each change to terms.
confirmation_windowstring
reversal_horizonstring
reversal_ruleslist of objects
dispute_settingsobject
metadatamap from strings to strings
Up to 50 keys of your own, with keys up to 40 characters and values up to 500 characters.
livemodeboolean
created_atdatetime
version_created_atdatetime
When this version took effect.
presetstringOptional
The preset used to fill in values when this version was made, if any. The values below are explicit either way.
warningslist of objectsOptional
Only on create and update responses. Values outside the recommended ranges, with the reason.
actorobjectOptional
Who made this version.
statsobjectOptional
The last 30 days, across all versions.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error