Add a version to a scripted REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2025 01:12 AM
Hello everyone!
I'm creating some Scripted REST APIs in which I have several Resources and I've enabled versioning.
When I want to create a new version by clicking on 'add new version', do I have to create a new version for all the Resources, or can I choose to add a new version only for specific Resources?
Thanks in advance to anyone who replies.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2025 01:22 AM
It copies all the resources from an existing version.
Even if you deactivate a existing resource, it still creates v2 resource as inactive when we create new version.
Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2025 01:22 AM
Hi @emanueledep ,
you can choose whether to copy the resource or completely build new resources
if you copy the all the old resources will be available in the new version and you make modifications to them
if you choose not to you can build new resources from scratch
API version is always at the API level not at the resource level
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2025 01:25 AM
Hello @emanueledep
When you add a new version to a Scripted REST API in ServiceNow, it doesn’t affect the old Resources.
You can create new Resources only for the new version.
Existing Resources stay linked to the version they were made in.
No need to copy everything—just add what you want in the new version.
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.