post
https://api.lucid.co/documents//shares/shareLinks
Creates a new share link on the provided document with the provided settings.
Notes:
- The
linkSecurityis only configurable for users on accounts with an enterprise license but is still required for team accounts. For more information see here.- If an expiration is provided outside the account defined limits, it will clamp to be the maximum possible time.
- If the
restrictToAccountfield is provided asfalseand the document's account defined settings do not allow share links outside the account, it will restrict the share link to be within the account.
Valid Authentication Methods
OAuth 2.0 User Token Scopes:
- lucidchart.document.content.share.link
- lucidchart.document.app.picker.share.link
- lucidchart.document.app.folder
- lucidscale.document.content.share.link
- lucidscale.document.app.picker.share.link
- lucidscale.document.app.folder
- lucidspark.document.content.share.link
- lucidspark.document.app.picker.share.link
- lucidspark.document.app.folder
400Bad Request if the document does not belong to an enterprise account and the restrictToAccount is set to true, defines a passcode, or defines an expiration or the allowAnonymous field is set to true on non-Lucidspark/Lucidchart documents.
403Forbidden if the app making the request does not have permission to the document, or if the document has been deleted, or does not exist.