Modify sites
You can modify 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:
PUT /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:site:extension:schema"
],
"displayName": "SiteABCXXCHANGE",
"urn:umt:extension:schema:site":
{
"SiteMnemonic":"ABC1",
"locale": "English (United States)",
"phoneNumbers": [
{
"value": "+1 555-555-5555",
"type": "primary"
},
{
"value": "+1 555-555-5555",
"type": "alternate"
},
{
"value": "+1 555-555-4444",
"type": "fax"
}
],
"email":"bjensen@example.com",
"addresses":
{
"streetAddress": "100 Evergreen Ave.",
"formatted": "Apartment 101",
"locality": "Los Angeles",
"region": "CA",
"postalCode": "94333",
"country": "United States"
},
"DateFormat": "Month / Day / Year",
"SignatureOrder": "L,F",
"timezone": "(UTC+01:00) Casablanca"
}
}
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"