Spaces method and path for this operation:
post /s/{space_id}/api/actions/action
Refer to Spaces for more information.
POST
/api/actions/action
curl \
--request POST 'https://localhost:5601/api/actions/action' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{
"actionTypeId": "string",
"config": {},
"name": "string",
"secrets": {}
}'