Missing scopes: api.evals.delete

I am trying to delete a eval using https://platform.openai.com/docs/api-reference/evals/delete?lang=python
And I am the owner of the organisation, and while creating the api key I gave ALL permissions, so theoretically I should be able to delete a eval using a id.
But instead this is what I get

openai.AuthenticationError: Error code: 401 - {‘error’: {‘message’: “You have insufficient permissions for this operation. Missing scopes: api.evals.delete. Check that you have the correct role in your organization (Owner) and project (Owner), and if you’re using a restricted API key, that it has the necessary scopes.”, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}

Am I doing something wrong?

1 Like