Open davidraker opened 2 years ago
Upgrade an agent on the VOLTTRON platform.
Request:
BEARER <jwt_token>
application/x-wheel+zip
<file_length>
<file_contents>
application/json
{ "pypi_name": "<pypi_name>" }
Response:
With valid BEARER token on success: 204 No Content
204 No Content
With valid BEARER token on failure: 400 Bad Request
400 Bad Request
{ "error": "<Error Message>" }
With invalid BEARER token: 401 Unauthorized Response:
401 Unauthorized
With valid BEARER token on success: 200 OK
200 OK
{ "<vip_identity>": "<uuid>" }
With invalid BEARER token: 401 Unauthorized
This can be accomplished using the install_agent RPC method to the control service. See the documentation for that method on line 612 of volttron/platform/control.py.
Upgrade an agent on the VOLTTRON platform.
Request:
BEARER <jwt_token>
application/x-wheel+zip
<file_length>
application/json
Response:
With valid BEARER token on success:
204 No Content
With valid BEARER token on failure:
400 Bad Request
application/json
With invalid BEARER token:
401 Unauthorized
Response:With valid BEARER token on success:
200 OK
application/json
With valid BEARER token on failure:
400 Bad Request
application/json
With invalid BEARER token:
401 Unauthorized