Skip to content

Cohort programs: update, delete

The Cohort Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for Cohort, one group of Cohort programs.

Cohort.update

Changes the given properties of a Cohort. Verb page.

Text
do: return await $.Cohort.update(input)

Emits Cohort.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Cohort.
queryjsonThe Portfolio query that selects its Startups.
controlbooleanTrue when the Cohort stays on the prior Version as the control.

Returns

OutputTypeRequiredDescription
cohortCohortrequiredThe Cohort.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Cohort.update({ id: 'cohort_YxPOKnSexq', query: {} })"
  }
}

Cohort.delete

Deletes a Cohort: a soft delete that keeps its history, undone by Thing.restore. Verb page.

Text
do: return await $.Cohort.delete(input)

Emits Cohort.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Cohort.

Returns

OutputTypeRequiredDescription
cohortCohortrequiredThe Cohort.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Cohort.delete({ id: 'cohort_YxPOKnSexq' })"
  }
}