Terminate or reinstate sites
You can terminate or reinstate sites through an API call.
Step 1: Create the Request Payload File
The request body of this API call needs to include the ID of the visit that you want to add the form to.
Create a new JSON file called update<sitename>.json (where <sitename> is the name of the site) and copy the following:
PATCH /scim/TESTTRIAL/1.0/groups
HOST: <hostname>
Accept: application/json
Authorization: Bearer eyJhGciO1J5...-MBqc
{
"schemas":[
"urn:ietf:params:scim:schemas:core:2.0:Group",
"urn:umt:extension:schema:site"
],
"urn:umt:extension:schema:site":
{
"SiteMnemonic":"ABC1",
"active": <true or false>
}
}
Where in <true or false> you must select the corresponding value:
true
to reinstate a site.false
to terminate a site.
Step 2: Run the cURL call
Run the following cURL call to add the user to your study using the request payload file.
curl -X POST "https://hs-umt-scim.oracleindustry.com/scim/<trialname>/1.0/groups -d "@update<sitename>.json"