Browse the help center

Remove site share

Revokes a user's share on a site, as the Shares grid of the console does.

Reference
DELETE https://YOUR-NETWORK-DOMAIN/rest-api/siteShares/{userId}/{siteId}.do

Revokes a user's share on a site, as the Shares grid of the console does. The response echoes the userId and siteId. Works for a deleted site too, so a share left on one can be cleaned up. Needs the SHARE permission on inventory at ALL level; at SHARED level the caller's own share on the site must be higher than the one being removed, or the user must be one the caller owns.

Path Params

userId integer required

ID of the user whose share is removed

5001

siteId integer required

ID of the site the share is on

4001

Responses

200

Share removed: {success, userId, siteId}

400

Bad request — invalid or missing parameters

401

Authentication error

403

Not allowed to remove this share

404

No such user or site, or the user has no share on it

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.