Forum Discussion

Alfred_Heijkoop's avatar
Alfred_Heijkoop
Icon for Contributor III rankContributor III
2 days ago

API Credentials

Hi,

For onboarding a serous amount of new customers I would like to create a universal credential with the API.

I am not able to find some documentation what to use for the payload.

I have tried with the API browser in SL1 to post an update on an existing credential resulting in an error : "x-em7-status-message":"credential could not be updated".

Any suggestion how to overcome this issue? 

Thanks in advance.

Alfred Heijkoop

 

2 Replies

  • If you're saying you want to create a lot of Credentials of the same type.. 

    what I have done in the past.. easiest and quickest way i found..

    1.create 1 dummy cred in SL of the type you want.
    2. Create a csv file with your new cred details, Name, user, pass
    3. Script this:
    get your dummy cred from API
    EG:
    https://SLserver.com/api/credential/powershell/233

    loop through the csv, and amend payload from the get request, and change the fields with that of the csv, and then do a post with the amended payload.