Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement DELETE /platforms/:platform/agents/:vip_identity/configs/:file_name in API #11

Open
davidraker opened this issue Jan 21, 2022 · 2 comments

Comments

@davidraker
Copy link
Contributor

davidraker commented Jan 21, 2022

Remove an existing configuration file for the agent from the config store.

Request:

  • Authorization: BEARER <jwt_token>

Response:

  • With valid BEARER token on success: 204 No Content

  • With valid BEARER token on failure: 400 Bad Request

    • Content Type: application/json
    • Body:
      {
          "error": "<Error Message>"
      }
      
  • With invalid BEARER token: 401 Unauthorized

@davidraker
Copy link
Contributor Author

Use the 'manage_delete_config' RPC method on the config.store service.

@craig8
Copy link
Contributor

craig8 commented May 19, 2022

===============================
DELETE: http://localhost:8070/vui/platforms/volttron1/agents/platform.driver/configs/fake.csv
PARAMS:
{}
STATUS: 400

('{"Error": "volttron.platform.jsonrpc.Error(-32001, \"method '
"'manage_delete_config' requires capabilities {'edit_config_store'}, but "
"capability {'allow_auth_modifications': None} was provided for user "
'platform_web\")"}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants