Your passcode is the same to access your account online and over the phone, so if you change it in one place, it’ll automatically change for both.
To change your passcode, register for or log into Barclaycard online servicing. Once you're logged in, you can change your security details at any time, by selecting 'Secure login details', which you'll find under 'Your details' in the top menu.