Palmitoyltransferase that catalyzes the addition of palmitate onto various protein substrates and is involved in a variety of cellular processes (PubMed:15489887, PubMed:15603740, PubMed:24705354, PubMed:27911442, PubMed:28757145). Has no stringent fatty acid selectivity and in addition to palmitate can also transfer onto target proteins myristate from tetradecanoyl-CoA and stearate from octadecanoyl-CoA (By similarity). Palmitoyltransferase specific for a subset of neuronal proteins, including SNAP25, DLG4/PSD95, GAD2, SYT1 and HTT (PubMed:15603740, PubMed:15489887, PubMed:19139280, PubMed:28757145). Also palmitoylates neuronal protein GPM6A as well as SPRED1 and SPRED3 (PubMed:24705354). Could also play a role in axonogenesis through the regulation of NTRK1 and the downstream ERK1/ERK2 signaling cascade (By similarity). May be involved in the sorting or targeting of critical proteins involved in the initiating events of endocytosis at the plasma membrane (PubMed:12393793). May play a role in Mg(2+) transport (PubMed:18794299). Could also palmitoylate DNAJC5 and regulate its localization to the Golgi membrane (By similarity). Palmitoylates CASP6, thereby preventing its dimerization and subsequent activation (PubMed:27911442). hexadecanoyl-CoA + L-cysteinyl-[protein] = CoA + S-hexadecanoyl-L-cysteinyl-[protein] L-cysteinyl-[protein] + tetradecanoyl-CoA = CoA + S-tetradecanoyl-L-cysteinyl-[protein] L-cysteinyl-[protein] + octadecanoyl-CoA = CoA + S-octadecanoyl-L-cysteinyl-[protein] Interacts (via ANK repeats) with numerous proteins (via the consensus sequence motif [VIAP]-[VIT]-x-x-Q-P) (PubMed:28882895). Interacts (via ANK repeats) with CLIP3 (PubMed:26198635, PubMed:28882895). Interacts (via ANK repeats) with HTT; this interaction is inversely correlated to the length of the polyglutamine tract added to the huntingtin protein in Huntington disease (PubMed:12393793, PubMed:9700202, PubMed:26198635, PubMed:28882895, PubMed:28757145). Interacts (via ANK repeats) with DNAJC5 (via C-terminus) (PubMed:28882895). Interacts (via ANK repeats) with MAP6 (PubMed:26198635). Interacts (via ANK repeats) with SNAP23 (PubMed:28882895). Interacts (via ANK repeats) with SNAP25 (PubMed:28882895, PubMed:28757145). Interacts (via ANK repeats) with EVL (PubMed:28882895). Interacts with SPRED1 and SPRED3 (PubMed:24705354). Interacts with GPM6A and OPTN (PubMed:24705354). May interact (via ANK repeats) with SPRED2 (By similarity). May interact with NTRK1; may regulate its localization and function (By similarity). Low extracellular Mg(2+) induces increase in Golgi and in post-Golgi membrane vesicles. Expressed in all brain regions. Expression is highest in the cortex, cerebellum, occipital lobe and caudate and lowest in the spinal cord. Expression is also seen in testis, pancreas, heart and kidney. The DHHC domain is required for palmitoyltransferase activity. Autopalmitoylated (PubMed:15603740, PubMed:18794299). Autopalmitoylation has a regulatory role in ZDHHC17-mediated Mg(2+) transport (PubMed:18794299). Belongs to the DHHC palmitoyltransferase family. AKR/ZDHHC17 subfamily. Thought to palmitoylate MPP1 (PubMed:22496366). This work was later retracted due to image manipulation. Extended N-terminus. Extended N-terminus. Truncated N-terminus. Truncated N-terminus.