How to: Import a Digital.ai Release Template in .xlr format inside a Folder using REST API

Scenario

You need to import your template(s) inside Digital.ai Release Folder(s) using the REST API

Environment

Digital.ai Release

Steps to Follow

  1. Find the folder ID of the Folder you want your template to be imported to. It's in the form of Applications/Folder7072567672
  2. Run the REST Call below using your choice of REST client. I am demonstrating it using cURL command
curl -u "username:password" "http://xl-release-server-IP/hostname:port/api/v1/
templates/import?folderId=Applications/Folder707256767" -X POST -H "content-type:
multipart/form-data" -F "data=@shashank.xlr"
  1. It will import the Template shashank.xlr to Folder Applications/Folder707256767
admin@shashank-mbp ~/Downloads> curl -u "username:password" "http://localhost:5516/
api/v1/templates/import?folderId=Applications/Folder707256767" -X POST -H
"content-type:multipart/form-data" -F "data=@shashank.xlr"[{"id":"Folder707256767-
Release357326018", "title":"shashank","warnings":["Teams in this template have
been removed. They will be inherited from the folder."]}]

Note

Please ensure that you are specifying the correct location of your Template file

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.