Creates a new user product share and send it via email. The exact contents of this email are configurable in the admin
console. The email may include a link composed of the required attribute base_url
and an additional path parameter
sharing_id
. It is expected that the specified base_url
will direct invite recipients to a page that allows them
to accept the invite and register/login. Custom metadata can also be passed to this method, which will be made available
in the invitation email template and any later calls to access the
publicly available share data. This metadata can be used, for example, to
include the product owner's first name and a personalised message that is shown to the recipient in the invitation email
and in a screen that allows the recipient to accept the invite.
Invoking this method will reduce the number of shares that the user has available for the given product.
The specified product must be shareable, the current user must have active grants for the product and must not have already exceeded the configured maximum number of shares for the product.
OK
Bad Request
Forbidden
Conflict
{- "product_id": "product-1",
- "email_address": "name@domain.com",
}
{- "sharing_id": "0nasdj-aso25-6454"
}