POSTpartial

Propose a party record correction

Preview controlled by PEOPLES_COURT_API_CANONICAL_ROUTES. Accepts an authorized session or partner bearer; Answer also accepts the existing wallet/invitation proof. A record-summary correction is a distinct party act, so an active case membership must allow restatement:respond, which record:confirm alone never grants. Existing aliases and their application operations remain authoritative. Idempotency-Key reuses the alias journal.

/api/cases/{id}/record-summary/correctionscorrectRecordSummaryPreview

Authentication and authority

Use one listed account-session, scoped OAuth, or partner credential alternative. Account tokens retain the approving account’s authority. Cookie-authenticated writes require same-origin authorization. Alternatives are OR; schemes in one alternative are AND.

CanonicalPartnerBearer

CanonicalSession

AccountOAuth

Account tokens authorize only their approving account and case scope. S256 PKCE is mandatory on the code flow. Explicit reacceptance is required after Rules/disclosure changes.

Parameters

NameLocationRequirementSchema
idpathRequired{"type":"string"}
Idempotency-KeyheaderOptional{"type":"string"}

Request body

Required request body.

application/json

{
  "$ref": "#/components/schemas/CanonicalRecordCorrectionInput",
  "type": "object",
  "required": [
    "correction"
  ],
  "description": "Rule 4.8 correction request against the caller's current party record.",
  "properties": {
    "correction": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000
    },
    "party": {
      "type": "string",
      "enum": [
        "claimant",
        "respondent"
      ]
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0
    }
  }
}

Responses

200

Authorized operation result.

application/json

{
  "$ref": "#/components/schemas/CanonicalRecordCorrectionEnvelope",
  "type": "object",
  "required": [
    "data",
    "requestId"
  ],
  "properties": {
    "data": {
      "$ref": "#/components/schemas/CanonicalRecordCorrectionResult",
      "type": "object",
      "required": [
        "applied",
        "preparationVersion",
        "note"
      ],
      "description": "Bounded correction outcome. applied false means the note was referred under Rule 4.7 and the record on file is unchanged.",
      "properties": {
        "applied": {
          "type": "boolean"
        },
        "phase": {
          "type": "string"
        },
        "preparationVersion": {
          "type": "string"
        },
        "note": {
          "type": "string"
        },
        "restatement": {
          "type": "object",
          "description": "The party-scoped record after the correction, including the regenerated request list and its exact digest.",
          "properties": {
            "text": {
              "type": "string"
            },
            "generatedAt": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "confirmed",
                "corrected",
                "lapsed"
              ]
            },
            "respondedAt": {
              "type": "string"
            },
            "correction": {
              "type": "string"
            },
            "revision": {
              "type": "integer"
            },
            "sourceSubmissionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "sourceContentHashes": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "sourceFingerprint": {
              "type": "string"
            },
            "confirmationDueAt": {
              "type": "string"
            },
            "rejectedCorrections": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "at": {
                    "type": "string"
                  }
                }
              }
            },
            "requestInventory": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "string"
                },
                "party": {
                  "type": "string",
                  "enum": [
                    "claimant",
                    "respondent"
                  ]
                },
                "sourceFingerprint": {
                  "type": "string"
                },
                "restatementRevision": {
                  "type": "integer"
                },
                "parents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "parentId": {
                        "type": "string"
                      },
                      "claimId": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "statement": {
                        "type": "string"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "currency": {
                        "type": "string"
                      }
                    }
                  }
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "itemId": {
                        "type": "string"
                      },
                      "parentId": {
                        "type": "string"
                      },
                      "parentClaimId": {
                        "type": "string"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "fixedText": {
                        "type": "string"
                      },
                      "requestedAmount": {
                        "type": "number"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "canonicalDeclaration": {
                        "type": "string"
                      },
                      "canonicalOrder": {
                        "type": "string"
                      },
                      "severableScopes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "scopeId": {
                              "type": "string"
                            },
                            "fixedText": {
                              "type": "string"
                            },
                            "source": {
                              "type": "object",
                              "properties": {
                                "sourceId": {
                                  "type": "string"
                                },
                                "sourceContentHash": {
                                  "type": "string"
                                },
                                "firstLine": {
                                  "type": "integer"
                                },
                                "lastLine": {
                                  "type": "integer"
                                },
                                "exactText": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      },
                      "source": {
                        "type": "object",
                        "properties": {
                          "sourceId": {
                            "type": "string"
                          },
                          "sourceContentHash": {
                            "type": "string"
                          },
                          "firstLine": {
                            "type": "integer"
                          },
                          "lastLine": {
                            "type": "integer"
                          },
                          "exactText": {
                            "type": "string"
                          }
                        }
                      },
                      "residual": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "originalParentCoverage": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "displayText": {
                  "type": "string"
                },
                "displayDigest": {
                  "type": "string"
                },
                "inventoryHash": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "respondedAt": {
                  "type": "string"
                }
              }
            },
            "priorRevisions": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CanonicalPartyRestatementRevision",
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "generatedAt": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "confirmed",
                      "corrected",
                      "lapsed"
                    ]
                  },
                  "respondedAt": {
                    "type": "string"
                  },
                  "correction": {
                    "type": "string"
                  },
                  "revision": {
                    "type": "integer"
                  },
                  "sourceSubmissionIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "sourceContentHashes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "sourceFingerprint": {
                    "type": "string"
                  },
                  "confirmationDueAt": {
                    "type": "string"
                  },
                  "rejectedCorrections": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string"
                        },
                        "at": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "requestInventory": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "string"
                      },
                      "party": {
                        "type": "string",
                        "enum": [
                          "claimant",
                          "respondent"
                        ]
                      },
                      "sourceFingerprint": {
                        "type": "string"
                      },
                      "restatementRevision": {
                        "type": "integer"
                      },
                      "parents": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "parentId": {
                              "type": "string"
                            },
                            "claimId": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "statement": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "itemId": {
                              "type": "string"
                            },
                            "parentId": {
                              "type": "string"
                            },
                            "parentClaimId": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string"
                            },
                            "fixedText": {
                              "type": "string"
                            },
                            "requestedAmount": {
                              "type": "number"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "canonicalDeclaration": {
                              "type": "string"
                            },
                            "canonicalOrder": {
                              "type": "string"
                            },
                            "severableScopes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "scopeId": {
                                    "type": "string"
                                  },
                                  "fixedText": {
                                    "type": "string"
                                  },
                                  "source": {
                                    "type": "object",
                                    "properties": {
                                      "sourceId": {
                                        "type": "string"
                                      },
                                      "sourceContentHash": {
                                        "type": "string"
                                      },
                                      "firstLine": {
                                        "type": "integer"
                                      },
                                      "lastLine": {
                                        "type": "integer"
                                      },
                                      "exactText": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "source": {
                              "type": "object",
                              "properties": {
                                "sourceId": {
                                  "type": "string"
                                },
                                "sourceContentHash": {
                                  "type": "string"
                                },
                                "firstLine": {
                                  "type": "integer"
                                },
                                "lastLine": {
                                  "type": "integer"
                                },
                                "exactText": {
                                  "type": "string"
                                }
                              }
                            },
                            "residual": {
                              "type": "boolean"
                            }
                          }
                        }
                      },
                      "originalParentCoverage": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "displayText": {
                        "type": "string"
                      },
                      "displayDigest": {
                        "type": "string"
                      },
                      "inventoryHash": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "respondedAt": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "requestId": {
      "type": "string"
    }
  }
}
201

Answer or invitation created through the shared partner operation.

application/json

{
  "$ref": "#/components/schemas/CanonicalRecordCorrectionEnvelope",
  "type": "object",
  "required": [
    "data",
    "requestId"
  ],
  "properties": {
    "data": {
      "$ref": "#/components/schemas/CanonicalRecordCorrectionResult",
      "type": "object",
      "required": [
        "applied",
        "preparationVersion",
        "note"
      ],
      "description": "Bounded correction outcome. applied false means the note was referred under Rule 4.7 and the record on file is unchanged.",
      "properties": {
        "applied": {
          "type": "boolean"
        },
        "phase": {
          "type": "string"
        },
        "preparationVersion": {
          "type": "string"
        },
        "note": {
          "type": "string"
        },
        "restatement": {
          "type": "object",
          "description": "The party-scoped record after the correction, including the regenerated request list and its exact digest.",
          "properties": {
            "text": {
              "type": "string"
            },
            "generatedAt": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "confirmed",
                "corrected",
                "lapsed"
              ]
            },
            "respondedAt": {
              "type": "string"
            },
            "correction": {
              "type": "string"
            },
            "revision": {
              "type": "integer"
            },
            "sourceSubmissionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "sourceContentHashes": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "sourceFingerprint": {
              "type": "string"
            },
            "confirmationDueAt": {
              "type": "string"
            },
            "rejectedCorrections": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "at": {
                    "type": "string"
                  }
                }
              }
            },
            "requestInventory": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "string"
                },
                "party": {
                  "type": "string",
                  "enum": [
                    "claimant",
                    "respondent"
                  ]
                },
                "sourceFingerprint": {
                  "type": "string"
                },
                "restatementRevision": {
                  "type": "integer"
                },
                "parents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "parentId": {
                        "type": "string"
                      },
                      "claimId": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "statement": {
                        "type": "string"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "currency": {
                        "type": "string"
                      }
                    }
                  }
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "itemId": {
                        "type": "string"
                      },
                      "parentId": {
                        "type": "string"
                      },
                      "parentClaimId": {
                        "type": "string"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "fixedText": {
                        "type": "string"
                      },
                      "requestedAmount": {
                        "type": "number"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "canonicalDeclaration": {
                        "type": "string"
                      },
                      "canonicalOrder": {
                        "type": "string"
                      },
                      "severableScopes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "scopeId": {
                              "type": "string"
                            },
                            "fixedText": {
                              "type": "string"
                            },
                            "source": {
                              "type": "object",
                              "properties": {
                                "sourceId": {
                                  "type": "string"
                                },
                                "sourceContentHash": {
                                  "type": "string"
                                },
                                "firstLine": {
                                  "type": "integer"
                                },
                                "lastLine": {
                                  "type": "integer"
                                },
                                "exactText": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      },
                      "source": {
                        "type": "object",
                        "properties": {
                          "sourceId": {
                            "type": "string"
                          },
                          "sourceContentHash": {
                            "type": "string"
                          },
                          "firstLine": {
                            "type": "integer"
                          },
                          "lastLine": {
                            "type": "integer"
                          },
                          "exactText": {
                            "type": "string"
                          }
                        }
                      },
                      "residual": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "originalParentCoverage": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "displayText": {
                  "type": "string"
                },
                "displayDigest": {
                  "type": "string"
                },
                "inventoryHash": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "respondedAt": {
                  "type": "string"
                }
              }
            },
            "priorRevisions": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CanonicalPartyRestatementRevision",
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "generatedAt": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "confirmed",
                      "corrected",
                      "lapsed"
                    ]
                  },
                  "respondedAt": {
                    "type": "string"
                  },
                  "correction": {
                    "type": "string"
                  },
                  "revision": {
                    "type": "integer"
                  },
                  "sourceSubmissionIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "sourceContentHashes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "sourceFingerprint": {
                    "type": "string"
                  },
                  "confirmationDueAt": {
                    "type": "string"
                  },
                  "rejectedCorrections": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string"
                        },
                        "at": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "requestInventory": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "string"
                      },
                      "party": {
                        "type": "string",
                        "enum": [
                          "claimant",
                          "respondent"
                        ]
                      },
                      "sourceFingerprint": {
                        "type": "string"
                      },
                      "restatementRevision": {
                        "type": "integer"
                      },
                      "parents": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "parentId": {
                              "type": "string"
                            },
                            "claimId": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "statement": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "itemId": {
                              "type": "string"
                            },
                            "parentId": {
                              "type": "string"
                            },
                            "parentClaimId": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string"
                            },
                            "fixedText": {
                              "type": "string"
                            },
                            "requestedAmount": {
                              "type": "number"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "canonicalDeclaration": {
                              "type": "string"
                            },
                            "canonicalOrder": {
                              "type": "string"
                            },
                            "severableScopes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "scopeId": {
                                    "type": "string"
                                  },
                                  "fixedText": {
                                    "type": "string"
                                  },
                                  "source": {
                                    "type": "object",
                                    "properties": {
                                      "sourceId": {
                                        "type": "string"
                                      },
                                      "sourceContentHash": {
                                        "type": "string"
                                      },
                                      "firstLine": {
                                        "type": "integer"
                                      },
                                      "lastLine": {
                                        "type": "integer"
                                      },
                                      "exactText": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "source": {
                              "type": "object",
                              "properties": {
                                "sourceId": {
                                  "type": "string"
                                },
                                "sourceContentHash": {
                                  "type": "string"
                                },
                                "firstLine": {
                                  "type": "integer"
                                },
                                "lastLine": {
                                  "type": "integer"
                                },
                                "exactText": {
                                  "type": "string"
                                }
                              }
                            },
                            "residual": {
                              "type": "boolean"
                            }
                          }
                        }
                      },
                      "originalParentCoverage": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "displayText": {
                        "type": "string"
                      },
                      "displayDigest": {
                        "type": "string"
                      },
                      "inventoryHash": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "respondedAt": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "requestId": {
      "type": "string"
    }
  }
}
404

Preview disabled or resource unavailable.

default

Stable problem code and requestId; no protected state disclosed.

application/problem+json

{
  "$ref": "#/components/schemas/Problem",
  "type": "object",
  "required": [
    "type",
    "title",
    "status",
    "code",
    "detail",
    "requestId"
  ],
  "properties": {
    "type": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "code": {
      "type": "string"
    },
    "detail": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    }
  }
}

Example response

Successful response

{
  "data": {
    "applied": false,
    "preparationVersion": "preparationVersion_test",
    "note": "note_test"
  },
  "requestId": "requestId_test"
}

Errors

Read the response status and stable error code. See errors and rate limits for recovery. Refresh the resource before resolving a state or digest conflict.

Idempotency and retries

  • For throttling, honor Retry-After when present. Back off on retryable server failures.
  • Send a unique Idempotency-Key. An exact retry returns the stored result; reusing the key with a different request fails.
  • The request is accepted only when its credential, authority, case state, and resource preconditions are satisfied.