deleteAgentGrant method
Implementation
Future<void> deleteAgentGrant({required String projectId, required String agentId, required String userId}) async {
final encodedProjectId = Uri.encodeComponent(projectId);
final encodedAgentId = Uri.encodeComponent(agentId);
final encodedUserId = Uri.encodeComponent(userId);
final uri = Uri.parse('$baseUrl/accounts/projects/$encodedProjectId/agent-grants/$encodedAgentId/$encodedUserId');
final response = await httpClient.delete(uri);
if (response.statusCode >= 400) {
throw MeshagentException(
'Failed to delete agent grant. '
'Status code: ${response.statusCode}, body: ${response.body}',
);
}
}