parameters: - schema: type: string name: agentId in: path required: true post: summary: Upgrade agent tags: - Agents responses: '200': description: OK content: application/json: schema: $ref: ../components/schemas/upgrade_agent.yaml '400': $ref: ../components/responses/error.yaml operationId: upgrade-agent parameters: - $ref: ../components/headers/kbn_xsrf.yaml requestBody: required: true content: application/json: schema: $ref: ../components/schemas/upgrade_agent.yaml