Delete research detail

View as Markdown

Deletes one research detail for an entity and returns the deleted record. Delete false or unusable rows; keep believable time-series history. Requires provenance for audit.

Authentication

AuthorizationBearer

User bearer token: Supabase or Clerk session JWT, Clerk OAuth access token, or Clerk personal API key

OR
X-API-Keystring

Admin API key for system-to-system write operations

Path parameters

entityIdstringRequiredformat: "uuid"
Canonical entity UUID.
detailIdintegerRequired
Research detail id.

Query parameters

sourceTypeenumRequired
Write provenance source type.
sourceDetailstringRequired
Source detail or reviewer reference for the write.
sourceProviderstringOptional

Provider name for provider-native IDs or slugs.

sourceProviderIdstringOptional

Provider-native source ID.

sourceProviderSlugstringOptional

Provider-native source slug.

actorTypeenumOptional

Actor type; inferred as agent when agentChassis and agentModel are supplied, or as employee from an authenticated user JWT session.

Allowed values:
agentChassisstringOptional

Agent chassis token for agent-authored writes.

agentModelstringOptional

Agent model id for agent-authored writes.

Response

OK
entityIdstringformat: "uuid"
Canonical entity UUID
idinteger
typeResearchDetailstring
valueTypeenum
Output kind for governed research detail values
asOfDatedatetime or nullOptional
createdAtdatetime or nullOptional
creatorstring or nullOptional
dataConfidenceenum or nullOptional

Confidence tier stored verbatim in res_entity_detail.data_confidence.

derivedRangeobject or nullOptionalRead-only

Read-only range derived only for targetDateAbsolute detail rows

discreteValuedouble or nullOptional
textValuestring or nullOptional
updatedAtdatetime or nullOptional
valueResearchDetailstring or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
406
Not Acceptable Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error