internal/api/retractions.go
internal/api · 48 lines · 2 declarations · source
Declarations
type recordRetractionRequest
type recordRetractionRequest struct {
Records []pg.RecordMutation `json:"records"`
}
method Server.retractRecords
func (s *Server) retractRecords(w http.ResponseWriter, r *http.Request, grant credential.Grant)
The actor is the authenticated credential, never a body field. Success auditing belongs to the mutation transaction; a rejected request records no record IDs, source identifiers or content.