How to create New User Models via REST API in Spectrum
search cancel

How to create New User Models via REST API in Spectrum

book

Article ID: 259881

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

When using the REST API to create user models, what are the best practices to use?

Environment

Release : 21.2

Resolution

 

  1. Loop over all landscapes
    • POST user if not exists, else PUT user if attributes differ (do NOT set masterModel or homeModel attributes)
  2. On MLS ONLY - DELETE existing REL_CONTAINS_USER and POST new REL_CONTAINS_USER if necessary.
  3. Make sure the user running the commands is a super user.