Share via


SP.FileVersionCollection.getById Method (sp.js)

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

SP.FileVersionCollection.getById()

Parameters

  • versionid

Return value

SP.FileVersion

REST resource endpoint

See FileVersionCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurl)/versions/getById(versionid)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurl)/versions/getById(versionid)

Resource parameters

  • versionid