Palmitoyltransferase that could catalyze the addition of palmitate onto various protein substrates (By similarity). 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 (PubMed:26198635). Interacts (via ANK repeats) with DNAJC5 (via C-terminus) (By similarity). Interacts (via ANK repeats) with HTT (PubMed:26198635). Interacts (via ANK repeats) with MAP6 (PubMed:26198635). Interacts (via ANK repeats) with SNAP23. Interacts (via ANK repeats) with SNAP25. May interact (via ANK repeats) with SPRED2 (By similarity). 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. Truncated C-terminus.