Create PIN codes or delete PIN codes from the API

How can I create PIN codes or delete PIN codes from the API for the KEYPAD?