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