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.
Using bulkAssign to assign a nodeType to a list of nodes - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Using bulkAssign to assign a nodeType to a list of nodes
KB0853651

Using bulkAssign to assign a nodeType to a list of nodes


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

This endpoint allows us to assign a particular nodeType to a list of nodes with a single API call. The method must be executed within the context of an open changeset. Depending upon the size of the node list and the complexity of the nodeType structure this operation can take a significant amount of time.

Note iconNote: The recommended maximum number of nodes in a list is 50.
Note iconNote: During the bulkAssign, the affected nodes can't accept any other incoming changes.

Endpoint

method
POST
URI
/api/v1/data/node/types?ids=[ids]&type=[InodeTypeID]&changeset=[ID of the open data changeset]&assignChildTypes=true

Headers

!
Authorization
Bearer <userToken or APIkey>

!
Accept
application/vnd.siren+json

Parameters

!
ids
1234,1235,1236
a comma separated list of node IDs
!
type
8765
the unique ID of the nodeType
!
changeset
13579
the unique ID of a data changeset with status NEW/OPEN

Response

The response is a JSON object of all node changes.

In case of insufficient permissions, the response object will contain a {"AccessDeniedException"} message

Example cURL

curl -X POST 'https://demo.sweagle.com/api/v1/data/node/types?ids=1234,1235,1236&type=8765&changeset=13579&assignChildTypes=true' -H 'Accept: application/vnd.siren+json'  -H "Authorization: bearer Xeb940d3-ea37-4766-bb6c-f0b83deafb6f" 

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.