Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
API - create snapshot - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • API - create snapshot
KB0854284

API - create snapshot


691 Views Last updated : Sep 15, 2023 public Copy Permalink
KB Summary by Now Assist

This endpoint allows creating a snapshot for the pending data of a given config data set. Optionally you can provide a comment which will be displayed in the snapshot history page.

The user must have the permissions on the config data set name to create a snapshot for the given validity level.

Endpoint

method
POST
URI
/api/v1/data/include/snapshot/byname

headers

!
Authorization
Bearer <userToken or APIkey>

Parameters

!
level
off | warning | error
"off" means that only a snapshot will be taken in case there are no warnings or errors for the pending data.
!
name
myMdsName
the exact name of the config data set for which a snapshot should be taken

description
my%20automated%20snapshot
URL encoded description on why the snapshot was taken

tag
myTag
a single string as TAG for that snapshot - cannot contain spaces. ex "release1.2.3"

Response

The response is a JSON containing the version details of the snapshot. In case of insufficient permissions, the response object will contain a {"access denied"} message

Example cURL

curl -s -X POST -H 'authorization: Bearer 'b33e48b3-c88d-45bf-9b3a-5e449b1b37d4 https://demo.sweagle.com'/api/v1/data/include/snapshot/byname?name='test01'&level=off&description=major%20build%20createdFor%20test%20purposes'

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.