Member Roster Import Using cURL

You can upload members' data without using the Member Account service user interface. To do this, you have to create an application user with administrator permissions and retrieve its credentials.

To create an application user for the Member Account service:

  1. Sign in to the Smart Trading Cloud at https://auth.sandbox.kollab.link/.
  2. Go to the User Management page and click Create Application User on the upper-right corner.
  3. Enter an application name (for example, Members Upload) and click Create.
  4. After the new application user has been created, in group Applications, select this user in the list, and click More Actions ().
  5. In the drop-down menu, select Reset Credentials to download the file with the application user credentials. This file contains a string that you will need to add to your curl requests.
  6. Click Yes, navigate to the location on your local drive where you want to download the .stcc file to, and click Save.
  7. With the application user selected, click Add to Another Group.
  8. Select the group Members Admins and click Add.

Note You do not need to create a new application user each time you upload data. You can use one and the same application user with the same credentials for all your uploads.

To upload members' data using cURL:

  1. At the command prompt, enter the following:
  2. curl -F "file=@{ZipFileName}" -H "Authorization: CLAPP {AppUserCredentials}" -ssl -D - https://{YourOrganization’sMemberAccountServiceURL}/admin/api/members/import

    Copy

    Example

    curl -F "file=@roster.zip" -H "Authorization: CLAPP EAmMX9M0lrkvJS+8mZ….I9N+TCObEE="  -ssl -D - https://members.sandbox.kollab.link/health.plan.inc/admin/api/members/import

    - or -

    If you access the Member Account service through a proxy server or a firewall, use the option -ssl-no-revoke:

    curl –verbose –ssl-no-revoke -F "file=@{ZipFileName}" -H "Authorization: CLAPP {AppUserCredentials}" -ssl -D - https://{YourOrganization’sMemberAccountServiceURL}/admin/api/members/import

    Copy

    Example

    curl –verbose –ssl-no-revoke -F "file=@roster.zip" -H "Authorization: CLAPP EAmMX9M0lrkvJS+8mZ….I9N+TCObEE=" -ssl -D - https://members.sandbox.kollab.link/health.pla.inc/admin/api/members/import

  3. To make sure that the data has been successfully uploaded, check the job status.