# How to use the new API Path parameter?

**URL:** <https://forums.plex.tv/t/how-to-use-the-new-api-path-parameter/624501>\
**Category:** Plex Media Server\
**Tags:** library-management\
**Created:** [August 17, 2020, 8:36am UTC](https://forums.plex.tv/t/how-to-use-the-new-api-path-parameter/624501 "2020-08-17T08:36:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jobrien2001](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jobrien2001](https://forums.plex.tv/u/jobrien2001)\
**Post date:** [August 17, 2020, 8:36am UTC](https://forums.plex.tv/t/how-to-use-the-new-api-path-parameter/624501/1 "2020-08-17T08:36:57Z")

</div>

Recently I saw this on the path notes:  
(API) Add `path` parameter in scanning endpoint to allow partial scan via API.

Does anyone have a working url sample for this. I have been looking but haven’t found.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [August 17, 2020, 9:02am UTC](https://forums.plex.tv/t/how-to-use-the-new-api-path-parameter/624501/2 "2020-08-17T09:02:04Z")

</div>

I was told that  
to use that new parameter you need to make a call like:  
`http://127.0.0.1:32400/library/sections/:sectionId/refresh?path=D:\Videos\Movie1&X-Plex-Token=:yourToken`  
Where `:sectionId` is the id of your library and `path` is the full path to the specific path inside that library you want scanned.  
An [admin token](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/) needs to be passed too in place of `:yourToken`

If you use this from a script or app, you need to URLencode the path as well (if you put it into a browser address bar, this will be done automatically)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [November 15, 2020, 9:04am UTC](https://forums.plex.tv/t/how-to-use-the-new-api-path-parameter/624501/4 "2020-11-15T09:04:04Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
