pyfarm.agent.http.api.update module¶
Update Endpoint¶
This endpoint is used to instruct the agent to download and apply an update.
-
class
pyfarm.agent.http.api.update.
Update
[source]¶ Bases:
pyfarm.agent.http.api.base.APIResource
Requests the agent to download and apply the specified version of itself. Will make the agent restart at the next opportunity.
-
POST
/api/v1/update HTTP/1.1
¶ Request
POST /api/v1/update HTTP/1.1 Accept: application/json { "version": 1.2.3 }
Response
HTTP/1.1 200 ACCEPTED Content-Type: application/json
-
SCHEMAS
= {'POST': <Schema({'version': Any([<type 'str'>, <type 'unicode'>])}, extra=PREVENT_EXTRA, required=False) object>}¶
-
isLeaf
= False¶
-