Add sites
You can add sites to studies 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 <sitename>.json (where <sitename> is the name of the site) and copy the following:
{
"schemas":[
"urn:ietf:params:scim:schemas:core:2.0:Group",
"urn:umt:site:extension:schema"
],
"displayName": "SampleSiteName",
"urn:umt:extension:schema:site":
{
"SiteMnemonic":"SampleSiteMnemonic1",
"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":"sampleuser@example.com",
"addresses":
{
"streetAddress": "2300 Oracle Way",
"formatted": "Suite 101",
"locality": "Austin",
"region": "Texas",
"postalCode": "78741",
"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 site to your study using the request payload file.
curl -H "Authorization: Bearer %token%" -H "Accept: application/json" -X POST "https://hs-umt-scim.oracleindustry.com/scim/<trialname>/1.0/groups -d "@<sitename>.json"