Modify access level

Description

Modify the write access level of a sub-user.


 Parameters 

Name Data Type Status Description
auth-id Integer Required Authentication parameter
auth-password String Required Authentication parameter
id Integer Required Sub user's ID
write Integer Required Access level of the sub-user. Possible values:
  • 0 - Read
  • 1 - Read and Write

Return:Confirmation that the access level si changed


Possible errors (example)

When the authentication of the API user is not correct, any API request will fail with the following status and statusDescription:

{"status":"Failed","statusDescription": "Invalid authentication, incorrect user ID or password."}

If the sub-user's ID is invalid, the following status will be returned:

{"status":"Failed","statusDescription": "You don't have permission to do that."}

If there is no value added for "write", or it is invalid, the following status will be returned:

{"status":"Failed","statusDescription": "Invalid access level"}

Note: These are example errors in JSON format, and these are not the only errors that can be displayed.


 Example

URL JSON: https://api.cloudns.net/sub-users/set-write-access.json
POST/GET: auth-id=0&auth-password=password&id=0&write=1

URL XML: https://api.cloudns.net/sub-users/set-write-access.xml
POST/GET: auth-id=0&auth-password=password&id=0&write=1


Last modified: 2025-06-02
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation des cookies. Apprendre plus