Skip to main content

Share an address book

POST 

/api/addressbooks/:addressBookId/shares

Gives an active user or group a role on the address book and returns the share. If that user or group already has a share, its role is changed instead and created is false; the status is 201 either way. An inactive user or group cannot be added or have their role changed. A new share emails each person it includes: that user, or every member of the group except the person who shared it. The mail names the book, the role and who shared it. Role changes send no email, and a failed email does not fail the request. Only admins of the book may share it. Returns 400 for an unknown or inactive user or group, or when the change would demote the book's last admin.

Request​

Responses​

Created or updated share. Unlike the list, it has no name.