Palmitoyltransferase that could catalyze the addition of palmitate onto various protein substrates. Palmitoyltransferase for HTT and GAD2. May play a role in Mg(2+) transport. hexadecanoyl-CoA + L-cysteinyl-[protein] = CoA + S-hexadecanoyl-L-cysteinyl-[protein] Interacts (via ANK repeats) with CLIP3. Interacts (via ANK repeats) with DNAJC5 (via C-terminus). Interacts (via ANK repeats) with HTT. Interacts (via ANK repeats) with MAP6. Interacts (via ANK repeats) with SNAP23. Interacts (via ANK repeats) with SNAP25. May interact (via ANK repeats) with SPRED2. Low extracellular Mg(2+) induces increase in Golgi and in post-Golgi vesicles. The DHHC domain is required for palmitoyltransferase activity. Belongs to the DHHC palmitoyltransferase family. AKR/ZDHHC17 subfamily.