Spaces method and path for this operation:
post /s/{space_id}/api/endpoint_list
Refer to Spaces for more information.
Create the exception list for Elastic Endpoint rule exceptions. When you create the exception list, it will have a list_id of endpoint_list. If the Elastic Endpoint exception list already exists, your request will return an empty response.
POST /api/endpoint_list
curl \ --request POST 'https://localhost:5601/api/endpoint_list' \ --header "Authorization: $API_KEY"