HighQ 5.5

Files : API changes for 5.5 - Files Misc. API Changes - 5.5

OVERVIEW

1. Basic (Business) User/Group functionality support in Add/update group/user file permissions API

We have supported Basic/Business User functionality support in Add/update group/user file permissions API. 

Whenever we try to update file permission for Group / User based site, it will validate configurations provided in System Admin for Basic/Business user. If the given permission in request body violates with System Admin configuration then it will return 403 response with the below reference code and message as shown in example:

 

Sample Request payload for User based site:

<?xml version="1.0" encoding="UTF-8"?>
<usergrouppermissions usergrouptype="1">
   <id>10140</id>
   <filepermissions>
      <update>1</update>
      <watermark>1</watermark>
   </filepermissions>
</usergrouppermissions>

 

Sample Response body for User based site:

Error: 403

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
  <link>https://tr-7zd3y33.hqdev.highq.com/rushin_dev/api/11/error/391715</link>
  <ref>478</ref>
  <summary>Basic users do not have this permission</summary>
</error>

 

Sample Request payload for Group based site:

<?xml version="1.0" encoding="UTF-8"?>
<usergrouppermissions usergrouptype="2">
   <id>10140</id>
   <filepermissions>
      <update>1</update>
      <watermark>1</watermark>
   </filepermissions>
</usergrouppermissions>

 

Sample Response body for Group based site:

Error: 403

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
  <link>https://tr-7zd3y33.hqdev.highq.com/rushin_dev/api/11/error/391715</link>
  <ref>477</ref>
  <summary>Basic user groups do not have this permission</summary>
</error>

 

NOTE:  No changes in request and response parameters. Only new error reference code and message is added.

 

 

2. Basic (Business) User/Group functionality support in Add/update group/user folder permissions API

We have supported Basic/Business User functionality support in Add/update group/user folder permissions API. 

Whenever we try to update folder permission for Group / User based site, it will validate configurations provided in System Admin for the Basic/Business user. If the given permission in the request body violates with System Admin configuration then it will return a 403 response with the below reference code and message as shown in the example:

 

Sample Request payload for User based site:

<?xml version="1.0" encoding="UTF-8"?>
<usergrouppermissions usergrouptype="1">
   <id>22042</id>
   <folderpermissions>
        <addfiles>1</addfiles>
        <admin>1</admin>
        <watermark>1</watermark>
   </folderpermissions>
</usergrouppermissions>

 

Sample Response body for User based site:

Error: 403

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
  <link>https://tr-7zd3y33.hqdev.highq.com/rushin_dev/api/11/error/391715</link>
  <ref>478</ref>
  <summary>Basic users do not have this permission</summary>
</error>

 

Sample Request payload for Group based site:

<?xml version="1.0" encoding="UTF-8"?>
<usergrouppermissions usergrouptype="2">
   <id>22042</id>
   <folderpermissions>
        <addfiles>1</addfiles>
        <admin>1</admin>
        <watermark>1</watermark>
   </folderpermissions>
</usergrouppermissions>

 

Sample Response body for Group based site:

Error: 403

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
  <link>https://tr-7zd3y33.hqdev.highq.com/rushin_dev/api/11/error/391715</link>
  <ref>477</ref>
  <summary>Basic user groups do not have this permission</summary>
</error>

 

NOTE:  No changes in request and response parameters. Only the new error reference code and message is added.

 

Comments


0 Comments

Last Updated: Jun 09,2023