Minimum Success Criteria routes: update, delete
The Minimum Success Criteria Verbs update, delete as api.sb routes, with inputs, result, refusals and an example.
Reference for Minimum Success Criteria, one group of Minimum Success Criteria routes.
MinimumSuccessCriteria.update
Changes the given properties of a Minimum Success Criteria. Verb page.
PATCH /{namespace}/ minimum-success-criteria/ {id}Path: id. Body, as JSON: the other inputs. Emits MinimumSuccessCriteria.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Minimum Success Criteria. |
objective | text | The qualitative outcome. | |
horizon | string | One of day, week, quarter, year, or three-years. | |
metric | Metric | The Metric the number is measured in. | |
value | number | The number to reach. | |
by | date | The date it must be reached. | |
fermi | json | The Price, rates and volumes that show the number is reachable. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
minimumSuccessCriteria | Minimum Success Criteria | required | The Minimum Success Criteria. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X PATCH https: //api.sb/ leaseline.app/ minimum-success-criteria/ msc_3UF8zdSOyQ \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
-H "Content-Type: application/ json" \
-d '{"metric": "metric_GXFHAlK100"}'{
"api": "https: //api.sb/ leaseline.app",
"minimumSuccessCriteria": {
"$id": "https: //api.sb/ leaseline.app/ minimum-success-criteria/ msc_3UF8zdSOyQ",
"$type": "MinimumSuccessCriteria",
"objective": "Example objective",
"metric": "metric_GXFHAlK100",
"value": 1,
"by": "2026-10-22"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "MinimumSuccessCriteria.update",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}MinimumSuccessCriteria.delete
Deletes a Minimum Success Criteria: a soft delete that keeps its history, undone by Thing.restore. Verb page.
DELETE /{namespace}/ minimum-success-criteria/ {id}Path: id. Emits MinimumSuccessCriteria.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Minimum Success Criteria. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
minimumSuccessCriteria | Minimum Success Criteria | required | The Minimum Success Criteria. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X DELETE https: //api.sb/ leaseline.app/ minimum-success-criteria/ msc_3UF8zdSOyQ \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"{
"api": "https: //api.sb/ leaseline.app",
"minimumSuccessCriteria": {
"$id": "https: //api.sb/ leaseline.app/ minimum-success-criteria/ msc_3UF8zdSOyQ",
"$type": "MinimumSuccessCriteria",
"objective": "Example objective",
"metric": "metric_GXFHAlK100",
"value": 1,
"by": "2026-10-22"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "MinimumSuccessCriteria.delete",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}