Accounts
Share an account to user or user group
Assigns access permissions to an account under a resource for a specific user or user group. Provide USERID or USERGROUPID in the request body.
put/restapi/json/v1/resources/{resourceId}/accounts/{accountId}/share
Request
- Base URLhttps://Hostname:Port
- AuthAPI key in header AUTHTOKEN
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
resourceIdinteger required
Resource ID
accountIdinteger required
Account ID
Headers
orgNamestring
Name of the Organization (for MSP/multi-org deployments)
Request body application/x-www-form-urlencoded
Example request
{
"INPUT_DATA": {
"operation": {
"Details": {
"ACCESSTYPE": "view",
"USERID": "301",
"USERGROUPID": "2"
}
}
}
}Response
Account shared
Example response
{
"operation": {
"Details": {
"accessType": "view"
},
"name": "SHARE ACCOUNT"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.