Spaces method and path for this operation:
post /s/{space_id}/api/fleet/enrollment_api_keys
Refer to Spaces for more information.
[Required authorization] Route required privileges: fleet-agents-all.
POST /api/fleet/enrollment_api_keys
curl \ --request POST 'https://localhost:5601/api/fleet/enrollment_api_keys' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --header "kbn-xsrf: true" \ --data '{"expiration":"string","name":"string","policy_id":"string"}'