Implement a function to send a request to add an action.