MCPcopy Create free account
hub / github.com/ShipSecAI/studio / revoke

Method revoke

backend/src/api-keys/api-keys.controller.ts:86–89  ·  view source on GitHub ↗
(@CurrentAuth() auth: AuthContext, @Param('id') id: string)

Source from the content-addressed store, hash-verified

84 @Roles('ADMIN')
85 @ApiOkResponse({ type: ApiKeyResponseDto })
86 async revoke(@CurrentAuth() auth: AuthContext, @Param('id') id: string) {
87 const apiKey = await this.apiKeysService.update(auth, id, { isActive: false });
88 return ApiKeyResponseDto.create(apiKey);
89 }
90
91 @Delete(':id')
92 @Roles('ADMIN')

Callers 1

apiKeyStore.tsFile · 0.80

Calls 2

updateMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected