Share via


SP.FileVersion.url property (sp.js)

Gets a value that specifies the relative URL of the file version based on the URL for the site or subsite.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.FileVersion.get_url ()

Return value

Type: String

Remarks

It must not be empty. It must be a URL of relative form.

REST resource endpoint

See FileVersion resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurlfilerelativeurl})/versions(versionid/url

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurlfilerelativeurl})/versions(versionid/url

GET syntax

GET http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurlfilerelativeurl})/versions(versionid/url