Question: Issue with calling Create Site From Template API

27245

Hi all,

Hope you all are doing well. 

Currently, we are trying to create new sites by calling to HighQ API (Create Site From Template) details as below

**Site Resource APIs

POST /{version}/sites/templates/{templateid}/site

we have some trouble and concerns relating to this endpoint

1/

Whenever we tried this,  the first step always return below response and we have to manual access that link in browser and CLICK on the accept button. Then we can call the API normally

{    "summary": "Please accept the Terms & Conditions to access this site",    "ref": "434",    "link": "https://{YOUR_INSTANCES}.highq.com/{INSTANCE_NAME}/checkSiteSecurityTrustEntries.action?value={TOKEN}&siteId={SITE_ID}"}

The above step blocked us to integrate it with existing API, so not sure if there's any way we can config or remove it entirely for specific user.

2/

when we call the API (after accept the terms and conditions manually), we just get the response status code 202 (INPROGRESS and a link to check it progress) like below. But when we click on the link, it showed the error page instead. So we don't know whether or not the site is created successfully or not. We assume it should returned status 200 (SUCCESS) instead?

The reason we asked this question is because when we tried to create the site that has already existed, it did showed the error when we create in HighQ UI but it still return status 202 (INPROGRESS) like below instead of return any specific errors when we call from API . Not sure why these validations don't persist when we tried to call from API?

 

{  "progresskeystatus": "INPROGRESS",  "link": "https://{HIGHQ_INSTANCES}.highq.com/{INSTANCES_NAME}/api/13/progress/{TOKEN}"}

Hope to receive your response and any suggestions from you all are appreciated. 

Best Regards,