Which one is correct?(I was a candidate to the post.)

Answer: 
I was a candidate for the post.
Which one is correct?(I was a candidate to the post.)