Operations
POST /attachments/{id}/share
| Summary | Retrieve a link to the Rev Editor for the attachment with a given attachment id |
|---|---|
| URL | /api/v1/attachments/{id}/share |
| Detailed Description |
Returns a shareable link to the Rev Editor for attachment id.
Use this method to retrieve a URL that can be shared with others to access a transcript/caption associated with the
provided attachment id.
The link returned by this endpoint does not expire and anyone with the returned link can access the editor. Valid Attachments Kinds: Media, Transcription, Captions (including subtitles). Workspace accounts. For files in a Rev workspace, this request sets the file's General access to Anyone with the link at the level given by access_level, the same as choosing it in the Rev web app.
|
| Request Parameters |
|
| Request Headers |
|
| Request Body |
|
| Response |
On success, 201 Created. If attachment is not of a supported type or access_level provided for non-transcript attachments, 400 Bad Request. if no attachment is found for attachment id provided, 404 Not Found. If the user is not allowed to share the file, or their plan doesn't allow sharing outside their organization, 403 Forbidden. |
| Response Headers | Location - URI used to access the editor with the provided permission level. This URI does not expire and can be shared with others. For workspace accounts, the access it gives comes from the file's General access, so it reflects later changes to that setting. |
| Response Body | Empty |
| Error Codes | None |
| Annotated sample request |