API to upload (or download) a Theme

10 Comments

  • Nicole - Community Manager
    Comment actions Permalink

    Thanks for that feedback, Dru!

    0
  • Evan
    Comment actions Permalink

    This would make my month! With ZAT, and some local dev tools, we have a very lovely development cycle going for our theming efforts. Except for the painful download/upload steps. It would be great to have some method to pull and push template updates, and make things bulletproof.

    0
  • Jan Jachacz
    Comment actions Permalink

    Just joined the Zendesk ecosystem. The ZAT is pretty straightforward, but not having the ability to upload/download theme build via and an automated task is a real bummer. And when I re-upload the same zipped package, it duplicates it?! There must be a better way.. Am I missing something?!

    1
  • Dru Kepple
    Comment actions Permalink

    Jan, technically it's not a duplicate theme, as presumably you've made changes. The problem is that the theme's name is the same, so you have no way of differentiating the two (or more) in your theme workbench.

    I've incorporated a "bump" task into my build, so that everytime a deploy a zip, it bumps the manifest.json's version and also appends that new version to the name. Now when I upload that zip I see "My Theme 1.0.0" and "My Theme 1.0.1" or what-have-you.  I can more easily set 1.0.1 as the live theme, and quickly rollback to 1.0.0 if things get hairy.

    To do this manually, just open manifest.json and update the name property.  You can update the version property as well, but I can't discern anything that actually happens from changing the version.

    1
  • Jan Jachacz
    Comment actions Permalink

    Thanks for your reply Dru,

    I'll go with your bump task approach and sync tag on my repo. 

    0
  • Gorka Cardona-Lauridsen
    Comment actions Permalink

    Though it's not all you are looking for we are currently running a GitHub integration EAP that may be of interest. You can read more here.

    0
  • Dru Kepple
    Comment actions Permalink

    Yes, I saw that announcement, and it's great news. Unfortunately we use GitLab so I didn't look at it too hard.

    0
  • Liam O'Boyle
    Comment actions Permalink

    GitHub integration is great and all, but I'd rather have this as part of my build pipeline so I don't really want to manually be pulling updates from GH.

    What would be more useful than the GH integration is

    * uploading an updated version of the same theme should update it, not import as a new theme (or at least you should ask what they want to do; the manifest identifies the theme already)
    * there should be an API to publish an updated .zip

    0
  • Jonathan Brown
    Comment actions Permalink

    Just in case anyone stumbles across this like i did, Zendesk has this in beta:
    https://developer.zendesk.com/rest_api/docs/help_center/theming

    BUT! make sure you sign up for the beta here before attempting to do anything with it otherwise you'll just get 404s and be confused like i was...
    sign up to EAP here...
    https://support.zendesk.com/hc/en-us/community/posts/360030921493-Sign-up-for-the-EAP-

    0
  • Dru Kepple
    Comment actions Permalink

    Thanks, Jonathan, I just got signed up and got a quick test running (just listing themes), and will hopefully figure out this entire upload process (of COURSE it's a multi-step process). Thanks for posting!

    0

Please sign in to leave a comment.

Powered by Zendesk