MCPcopy
hub / github.com/MetapriseAI/OrgKernel / reactivate_identity

Function reactivate_identity

src/orgkernel/pyapi/router.py:351–360  ·  view source on GitHub ↗

Reactivate a suspended AgentIdentity.

(
    agent_id: str,
    db: Annotated[AsyncSession, Depends(get_db)],
)

Source from the content-addressed store, hash-verified

349 description="Reactivate a suspended AgentIdentity. REVOKED identities cannot be reactivated.",
350)
351async def reactivate_identity(
352 agent_id: str,
353 db: Annotated[AsyncSession, Depends(get_db)],
354) -> AgentIdentityOut:
355 """Reactivate a suspended AgentIdentity."""
356 svc = AgentIdentityService(db)
357 try:
358 return await svc.reactivate(agent_id)
359 except ValueError as e:
360 raise HTTPException(status_code=400, detail=str(e))
361
362
363@_identity.post(

Callers

nothing calls this directly

Calls 2

reactivateMethod · 0.95

Tested by

no test coverage detected