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.
  • The setting belongs to the file, not to this link. It applies to every link to the file, including links returned by earlier requests, and stays until someone changes the file's General access.
Request Parameters
  • id - Attachment Id of the attachment to be retrieved and shared
Request Headers
  • Authorization - contains client/user API keys
Request Body
  • access_level (Optional)- Permissions for editing the document found at the shareable link.
    Values - ReadOnly, Full. Defaults to ReadOnly.
    For workspace accounts, ReadOnly lets anyone with the link view the file and Full lets them edit it.
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
{
    "access_level": "Full"
}
                    
    <!--
        ReadOnly; Full
    -->
    <access_level>ReadOnly</access_level>