Update agent policy by ID
Spaces method and path for this operation:
put /s/{space_id}/api/fleet/agent_policies/{agentPolicyId}
Refer to Spaces for more information.
PUT /api/fleet/agent_policies/{agentPolicyId}
curl \ --request PUT 'https://localhost:5601/api/fleet/agent_policies/{agentPolicyId}' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --header "kbn-xsrf: string" \ --data '{"agent_features":[{"enabled":true,"name":"string"}],"data_output_id":"string","description":"string","download_source_id":"string","fleet_server_host_id":"string","force":true,"global_data_tags":[{}],"inactivity_timeout":42,"is_protected":true,"monitoring_enabled":["metrics"],"monitoring_output_id":"string","name":"string","namespace":"string","unenroll_timeout":42}'