Governance Rule
Only administrators can create GovernanceRules.
Specifications of a GovernanceRule object.
GovernanceRule ID. Unique and assigned by the system. Returned during Get operations. Ignored in other cases.
Tenant ID this GovernanceRule belongs to. Returned during Get operations. Ignored in other cases.
Short title of the rule. Required.
Full text of the rule, injected in the agent's system prompt. Required.
ID of a default or tenant-defined GovernanceRuleCategory. Required.
Name of the selected category. Returned during Get operations and ignored in writes.
Rationale explaining why this rule exists. Required.
Optional reference to a norm/regulation this rule derives from.
One of: Active, Draft. Required.
One of: All, MemoriCategories, List, AllExcept. Required.
Categories to match against Memori.Categories. Used only when ScopeType is MemoriCategories.
IDs (backend Memori IDs) this rule applies to. Used only when ScopeType is List.
User ID who created this rule. Returned during Get operations. Ignored in other cases.
User ID who last updated this rule. Returned during Get operations. Ignored in other cases.
Timestamp of creation. Returned during Get operations. Ignored in other cases.
Timestamp of latest change. Returned during Get operations. Ignored in other cases.
Success
Response of a Create GovernanceRule request.
Progressive number of the request (since the Server started). Use this number, together with the RequestDateTime property, to report an anomalous reponse.
Timestamp of the request. Use this timestamp, together with the RequestID property, to report an anomalous reponse.
Result code. A code of 0 means no errors.
When the request fails, its value is indicative of the actual
error.
Result message. A message of Ok means no errors.
POST /api/v2/GovernanceRule/{strToken} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 497
{
"ruleID": "text",
"tenantID": "text",
"title": "text",
"text": "text",
"categoryID": "text",
"categoryName": "text",
"rationale": "text",
"normRef": "text",
"status": "text",
"scopeType": "text",
"scopeMemoriCategories": [
"text"
],
"scopeMemoriIDs": [
"text"
],
"exclusions": [
{
"memoriID": "text",
"reason": "text",
"createdByUserID": "text",
"createdAt": "2026-01-01T00:00:00.000Z"
}
],
"createdByUserID": "text",
"updatedByUserID": "text",
"creationTimestamp": "2026-01-01T00:00:00.000Z",
"lastChangeTimestamp": "2026-01-01T00:00:00.000Z"
}Success
{
"governanceRule": {
"ruleID": "text",
"tenantID": "text",
"title": "text",
"text": "text",
"categoryID": "text",
"categoryName": "text",
"rationale": "text",
"normRef": "text",
"status": "text",
"scopeType": "text",
"scopeMemoriCategories": [
"text"
],
"scopeMemoriIDs": [
"text"
],
"exclusions": [
{
"memoriID": "text",
"reason": "text",
"createdByUserID": "text",
"createdAt": "2026-01-01T00:00:00.000Z"
}
],
"createdByUserID": "text",
"updatedByUserID": "text",
"creationTimestamp": "2026-01-01T00:00:00.000Z",
"lastChangeTimestamp": "2026-01-01T00:00:00.000Z"
},
"requestID": 1,
"requestDateTime": "2026-01-01T00:00:00.000Z",
"resultCode": 1,
"resultMessage": "text"
}Only administrators can get GovernanceRules.
Success
Response of a Get GovernanceRule request.
Progressive number of the request (since the Server started). Use this number, together with the RequestDateTime property, to report an anomalous reponse.
Timestamp of the request. Use this timestamp, together with the RequestID property, to report an anomalous reponse.
Result code. A code of 0 means no errors.
When the request fails, its value is indicative of the actual
error.
Result message. A message of Ok means no errors.
GET /api/v2/GovernanceRule/{strToken}/{strRuleID} HTTP/1.1
Accept: */*
Success
{
"governanceRule": {
"ruleID": "text",
"tenantID": "text",
"title": "text",
"text": "text",
"categoryID": "text",
"categoryName": "text",
"rationale": "text",
"normRef": "text",
"status": "text",
"scopeType": "text",
"scopeMemoriCategories": [
"text"
],
"scopeMemoriIDs": [
"text"
],
"exclusions": [
{
"memoriID": "text",
"reason": "text",
"createdByUserID": "text",
"createdAt": "2026-01-01T00:00:00.000Z"
}
],
"createdByUserID": "text",
"updatedByUserID": "text",
"creationTimestamp": "2026-01-01T00:00:00.000Z",
"lastChangeTimestamp": "2026-01-01T00:00:00.000Z"
},
"requestID": 1,
"requestDateTime": "2026-01-01T00:00:00.000Z",
"resultCode": 1,
"resultMessage": "text"
}Only administrators can delete GovernanceRules.
Success
Base response.
Progressive number of the request (since the Server started). Use this number, together with the RequestDateTime property, to report an anomalous reponse.
Timestamp of the request. Use this timestamp, together with the RequestID property, to report an anomalous reponse.
Result code. A code of 0 means no errors.
When the request fails, its value is indicative of the actual
error.
Result message. A message of Ok means no errors.
DELETE /api/v2/GovernanceRule/{strToken}/{strRuleID} HTTP/1.1
Accept: */*
Success
{
"requestID": 1,
"requestDateTime": "2026-01-01T00:00:00.000Z",
"resultCode": 1,
"resultMessage": "text"
}Only administrators can update GovernanceRules. Fields left null are not changed; ScopeType, if provided, replaces the whole scope (ScopeMemoriCategories/ScopeMemoriIDs/Exclusions).
Specifications of a GovernanceRule object.
GovernanceRule ID. Unique and assigned by the system. Returned during Get operations. Ignored in other cases.
Tenant ID this GovernanceRule belongs to. Returned during Get operations. Ignored in other cases.
Short title of the rule. Required.
Full text of the rule, injected in the agent's system prompt. Required.
ID of a default or tenant-defined GovernanceRuleCategory. Required.
Name of the selected category. Returned during Get operations and ignored in writes.
Rationale explaining why this rule exists. Required.
Optional reference to a norm/regulation this rule derives from.
One of: Active, Draft. Required.
One of: All, MemoriCategories, List, AllExcept. Required.
Categories to match against Memori.Categories. Used only when ScopeType is MemoriCategories.
IDs (backend Memori IDs) this rule applies to. Used only when ScopeType is List.
User ID who created this rule. Returned during Get operations. Ignored in other cases.
User ID who last updated this rule. Returned during Get operations. Ignored in other cases.
Timestamp of creation. Returned during Get operations. Ignored in other cases.
Timestamp of latest change. Returned during Get operations. Ignored in other cases.
Success
Response of an Update GovernanceRule request.
Progressive number of the request (since the Server started). Use this number, together with the RequestDateTime property, to report an anomalous reponse.
Timestamp of the request. Use this timestamp, together with the RequestID property, to report an anomalous reponse.
Result code. A code of 0 means no errors.
When the request fails, its value is indicative of the actual
error.
Result message. A message of Ok means no errors.
PATCH /api/v2/GovernanceRule/{strToken}/{strRuleID} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 497
{
"ruleID": "text",
"tenantID": "text",
"title": "text",
"text": "text",
"categoryID": "text",
"categoryName": "text",
"rationale": "text",
"normRef": "text",
"status": "text",
"scopeType": "text",
"scopeMemoriCategories": [
"text"
],
"scopeMemoriIDs": [
"text"
],
"exclusions": [
{
"memoriID": "text",
"reason": "text",
"createdByUserID": "text",
"createdAt": "2026-01-01T00:00:00.000Z"
}
],
"createdByUserID": "text",
"updatedByUserID": "text",
"creationTimestamp": "2026-01-01T00:00:00.000Z",
"lastChangeTimestamp": "2026-01-01T00:00:00.000Z"
}Success
{
"governanceRule": {
"ruleID": "text",
"tenantID": "text",
"title": "text",
"text": "text",
"categoryID": "text",
"categoryName": "text",
"rationale": "text",
"normRef": "text",
"status": "text",
"scopeType": "text",
"scopeMemoriCategories": [
"text"
],
"scopeMemoriIDs": [
"text"
],
"exclusions": [
{
"memoriID": "text",
"reason": "text",
"createdByUserID": "text",
"createdAt": "2026-01-01T00:00:00.000Z"
}
],
"createdByUserID": "text",
"updatedByUserID": "text",
"creationTimestamp": "2026-01-01T00:00:00.000Z",
"lastChangeTimestamp": "2026-01-01T00:00:00.000Z"
},
"requestID": 1,
"requestDateTime": "2026-01-01T00:00:00.000Z",
"resultCode": 1,
"resultMessage": "text"
}Only administrators can list GovernanceRules.
Success
Response of a List GovernanceRules request.
Progressive number of the request (since the Server started). Use this number, together with the RequestDateTime property, to report an anomalous reponse.
Timestamp of the request. Use this timestamp, together with the RequestID property, to report an anomalous reponse.
Result code. A code of 0 means no errors.
When the request fails, its value is indicative of the actual
error.
Result message. A message of Ok means no errors.
GET /api/v2/GovernanceRules/{strToken} HTTP/1.1
Accept: */*
Success
{
"governanceRules": [
{
"ruleID": "text",
"tenantID": "text",
"title": "text",
"text": "text",
"categoryID": "text",
"categoryName": "text",
"rationale": "text",
"normRef": "text",
"status": "text",
"scopeType": "text",
"scopeMemoriCategories": [
"text"
],
"scopeMemoriIDs": [
"text"
],
"exclusions": [
{
"memoriID": "text",
"reason": "text",
"createdByUserID": "text",
"createdAt": "2026-01-01T00:00:00.000Z"
}
],
"createdByUserID": "text",
"updatedByUserID": "text",
"creationTimestamp": "2026-01-01T00:00:00.000Z",
"lastChangeTimestamp": "2026-01-01T00:00:00.000Z"
}
],
"requestID": 1,
"requestDateTime": "2026-01-01T00:00:00.000Z",
"resultCode": 1,
"resultMessage": "text"
}Gets the GovernanceRules applicable to a given Memori (Title and Category only). Intended for a future read-only section in the Memori editor.
Only administrators can view applicable GovernanceRules. Never returns Text or Rationale.
Success
Response of a Get Applicable GovernanceRules request (admin-facing, read-only).
Progressive number of the request (since the Server started). Use this number, together with the RequestDateTime property, to report an anomalous reponse.
Timestamp of the request. Use this timestamp, together with the RequestID property, to report an anomalous reponse.
Result code. A code of 0 means no errors.
When the request fails, its value is indicative of the actual
error.
Result message. A message of Ok means no errors.
GET /api/v2/GovernanceRule/{strToken}/ApplicableFor/{strMemoriID} HTTP/1.1
Accept: */*
Success
{
"applicableRules": [
{
"title": "text",
"categoryID": "text",
"categoryName": "text"
}
],
"requestID": 1,
"requestDateTime": "2026-01-01T00:00:00.000Z",
"resultCode": 1,
"resultMessage": "text"
}Last updated