Hi all,
I will admit I am very much a novice with using Postman and indeed any kind of API interface. I was content to explore and learn at my own pace, but some recent changes in our environment have forced my hand and escalated our timeline to ‘immediate urgency’.
The issue: I have 8000 users I have to manually update with 3 separate commands. I can chain these into a single PATCH no problem, however individually sending 8000+ requests is more than me or our team have the capacity for.
The command looks like this:
curl --request PATCH \
--url https://api.smartrecruiters.com/user-api/v201804/users/USER1ID \
--header 'accept: application/json' \
--header 'content-type: application/json-patch+json' \
--header 'x-smarttoken: REDACTED' \
--data '
[
{
"op": "replace"
"value": "[email protected]",
"path": "/email",
},
{
"op": "replace",
"value": "PASSWORD",
"path": "/ssoLoginMode"
},
{
"op": "remove",
"path": "/ssoIdentifier"
}
]
'
What I need to do is basically create a script that is essentially:
curl --request PATCH \
--url https://api.smartrecruiters.com/user-api/v201804/users/USER1ID \
--header 'accept: application/json' \
--header 'content-type: application/json-patch+json' \
--header 'x-smarttoken: REDACTED' \
--data '
[
{
"op": "replace"
"value": "[email protected]",
"path": "/email",
},
{
"op": "replace",
"value": "PASSWORD",
"path": "/ssoLoginMode"
},
{
"op": "remove",
"path": "/ssoIdentifier"
}
]
'
curl --request PATCH \
--url https://api.smartrecruiters.com/user-api/v201804/users/USER2ID \
--header 'accept: application/json' \
--header 'content-type: application/json-patch+json' \
--header 'x-smarttoken: REDACTED' \
--data '
[
{
"op": "replace"
"value": "[email protected]",
"path": "/email",
},
{
"op": "replace",
"value": "PASSWORD",
"path": "/ssoLoginMode"
},
{
"op": "remove",
"path": "/ssoIdentifier"
}
]
'
curl --request PATCH \
--url https://api.smartrecruiters.com/user-api/v201804/users/USER3ID \
--header 'accept: application/json' \
--header 'content-type: application/json-patch+json' \
--header 'x-smarttoken: REDACTED' \
--data '
[
{
"op": "replace"
"value": "[email protected]",
"path": "/email",
},
{
"op": "replace",
"value": "PASSWORD",
"path": "/ssoLoginMode"
},
{
"op": "remove",
"path": "/ssoIdentifier"
}
]
'
Repeat etc for 500 users at a time (or 200 - either way, its easier than 1 at a time). I had a look at flows, but I lack the expertise to know whether or not this is the correct approach. TBH I was hoping to use my massive excel spreadsheet to create the ‘script’ componants for each user, then just copy paste the script chunks as above, but I don’t know whether I can use multiple URLs in the same call?
I appreciate any insight you can provide as I am very much a novice here.








