Update site share
Creates or updates a site share entry that grants a specific user a particular access level (IS_OWNER, CAN_EDIT, or CAN_VIEW) on the specified site.
https://YOUR-NETWORK-DOMAIN/rest-api/siteShares/update.do Creates or updates a site share entry that grants a specific user a particular access level (IS_OWNER, CAN_EDIT, or CAN_VIEW) on the specified site. If no userId is provided, the share is created for the currently authenticated user. The response contains the userId, siteId, and the resulting shareType. Requires ALL or SHARED inventory sharing permission; at SHARED level the caller's own share must be higher than CAN_VIEW and at least as high as both the share granted and the share it replaces (unless the target is a user the caller owns), so a sharer can neither promote anyone above its own level nor demote the owner. IS_OWNER lets its holder delete the site, so granting it also needs the right to delete it yourself: DELETE on inventory at ALL level, or at SHARED level an IS_OWNER share of your own.
Form Params
siteId integer required
Unique identifier of the site to share. Must be a positive number referencing an existing, non-deleted site
4001 shareType string required
Access level to grant. Allowed values: IS_OWNER (full ownership), CAN_EDIT (read/write access), CAN_VIEW (read-only access)
CAN_EDIT userId integer
Unique identifier of the user to grant the share to. If omitted, the share is created for the currently authenticated user
5001 Responses
200
Site share updated successfully
400
Invalid request data
401
Authentication error
403
Insufficient sharing permissions, or IS_OWNER requested without the right to delete the site
500
Internal server error