Copy agent policy by ID
Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agent_policies/{agentPolicyId}/copy
Refer to Spaces for more information.
POST
/api/fleet/agent_policies/{agentPolicyId}/copy
curl \
--request POST 'https://localhost:5601/api/fleet/agent_policies/{agentPolicyId}/copy' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: string" \
--data '{"description":"string","name":"string"}'