What Am I? 2

I am a seven digit number. All of my digits are distinct and non-zero. The sum of all my digits is 29. My first digit is 2, and my last is 6. No two consecutive digits are even, no two consecutive digits are odd, and no two consecutive digits are prime.
The number also follows another interesting pattern - starting from the first digit, if the second digit is higher, then the third will be lower than the second, and the fourth higher than the third, and so on alternately. This pattern can also be inverted.

What am I?

Hint

Which digits can add up to 29? Then consider the rules and work from digit to digit.
Remember that 1 is not a prime - it is a cardinal number.Hide