Reassign agent Deprecated

PUT /api/fleet/agents/{agentId}/reassign

Spaces method and path for this operation:

put /s/{space_id}/api/fleet/agents/{agentId}/reassign

Refer to Spaces for more information.

Headers

  • kbn-xsrf string Required

    Kibana's anti Cross-Site Request Forgery token. Can be any string value.

Path parameters

  • agentId string Required
application/json

Body Required

  • policy_id string Required

Responses

  • 200 application/json

    OK

  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
PUT /api/fleet/agents/{agentId}/reassign
curl \
 --request PUT 'https://localhost:5601/api/fleet/agents/{agentId}/reassign' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: string" \
 --data '{"policy_id":"string"}'