Cut the potatoes into cubes, then cut the sausage into pieces. Also slice the onion (optional). Place all ingredients in a bowl and toss with oil and spices. Preheat the air fryer to 380 degrees Fahrenheit and cook the sausages and potatoes until tender and crispy, 13-17 minutes. Remove and serve!