{"info":{"_postman_id":"0c1e94a4-97db-42b3-b959-66a044c8f086","name":"TrialKit APIs","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"12223783","collectionId":"0c1e94a4-97db-42b3-b959-66a044c8f086","publishedId":"2sBY4WnGf9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"1D6696"},"publishDate":"2026-08-10T13:32:14.000Z"},"item":[{"name":"Get Studies","id":"cf37399e-84db-4f60-b60f-a61f60c6d180","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/study/12","description":"<h2 id=\"get-studies\">Get Studies</h2>\n<p>Retrieves a list of studies scoped to a specific site. The response contains a <code>study_list</code> array with details about each study associated with the given site.</p>\n<hr />\n<h3 id=\"endpoint\">Endpoint</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET {{tk_baseurl}}/api/study/12\n</code></pre><blockquote>\n<p><strong>Note:</strong> The <code>/12</code> in the path is a fixed route within the controller — it is not a dynamic parameter representing a site ID.</p>\n</blockquote>\n<hr />\n<h3 id=\"required-headers\">Required Headers</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>From</code></td>\n<td><code>{{tk_from}}</code></td>\n<td>Identifies the requesting user</td>\n</tr>\n<tr>\n<td><code>Authorization</code></td>\n<td><code>{{tk_auth}}</code></td>\n<td>Bearer token for authentication</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"response\">Response</h3>\n<p>Returns a JSON object containing a <code>study_list</code> array. Each study object in the array includes the following fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>st_id</code></td>\n<td>Unique identifier for the study</td>\n</tr>\n<tr>\n<td><code>st_name</code></td>\n<td>Name of the study</td>\n</tr>\n<tr>\n<td><code>st_desc</code></td>\n<td>Description of the study</td>\n</tr>\n<tr>\n<td><code>st_version</code></td>\n<td>Version of the study</td>\n</tr>\n<tr>\n<td><code>st_schema</code></td>\n<td>Schema associated with the study</td>\n</tr>\n<tr>\n<td><code>st_active</code></td>\n<td>Boolean flag indicating if the study is active</td>\n</tr>\n<tr>\n<td><code>st_active_txt</code></td>\n<td>Human-readable active status label</td>\n</tr>\n<tr>\n<td><code>st_type</code></td>\n<td>Numeric type identifier for the study</td>\n</tr>\n<tr>\n<td><code>st_type_txt</code></td>\n<td>Human-readable study type label</td>\n</tr>\n<tr>\n<td><code>st_default</code></td>\n<td>Indicates if this is the default study</td>\n</tr>\n<tr>\n<td><code>st_theme_id</code></td>\n<td>Theme identifier associated with the study</td>\n</tr>\n<tr>\n<td><code>date_created</code></td>\n<td>Timestamp of when the study was created</td>\n</tr>\n<tr>\n<td><code>st_status</code></td>\n<td>Numeric status code of the study</td>\n</tr>\n<tr>\n<td><code>st_status_txt</code></td>\n<td>Human-readable study status label</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","study","12"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf37399e-84db-4f60-b60f-a61f60c6d180"},{"name":"Get Sites Current Study site/1","id":"d7353391-dc55-411d-9814-fbab63c4525c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/site/1","description":"<p>Returns a list of sites configured for the current study for the authorized user.</p>\n<blockquote>\n<p><strong>Note:</strong> If the user has access to multiple studies, ensure the correct current study is set before calling this endpoint. </p>\n</blockquote>\n<h2 id=\"request-headers\">Request Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>From</code></td>\n<td><code>{{tk_from}}</code></td>\n</tr>\n<tr>\n<td><code>Authorization</code></td>\n<td><code>{{tk_auth}}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"endpoint\">Endpoint</h2>\n<p><code>GET {{tk_baseurl}}/api/site/1</code></p>\n<p>The <code>/1</code> is part of the route path for this endpoint.</p>\n<h2 id=\"response\">Response</h2>\n<p>Returns a <code>study_sites</code> array. Each object in the array contains the following fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>site_id</code></td>\n<td>integer</td>\n<td>Unique identifier for the site</td>\n</tr>\n<tr>\n<td><code>site_name</code></td>\n<td>string</td>\n<td>Display name of the site</td>\n</tr>\n<tr>\n<td><code>site_type</code></td>\n<td>integer</td>\n<td>Numeric code for the site type</td>\n</tr>\n<tr>\n<td><code>site_type_txt</code></td>\n<td>string</td>\n<td>Human-readable site type (e.g. <code>\"Provider\"</code>, <code>\"Administrative\"</code>)</td>\n</tr>\n<tr>\n<td><code>site_active</code></td>\n<td>boolean</td>\n<td>Whether the site is currently active</td>\n</tr>\n<tr>\n<td><code>site_id_no</code></td>\n<td>string</td>\n<td>External/reference ID number for the site</td>\n</tr>\n<tr>\n<td><code>role_id</code></td>\n<td>integer</td>\n<td>Role ID of the authorized user at this site</td>\n</tr>\n<tr>\n<td><code>site_version</code></td>\n<td>integer</td>\n<td>Version number of the site configuration</td>\n</tr>\n<tr>\n<td><code>site_version_txt</code></td>\n<td>string</td>\n<td>Human-readable version label (e.g. <code>\"20.0\"</code>)</td>\n</tr>\n<tr>\n<td><code>site_reg_subjects</code></td>\n<td>integer</td>\n<td>Number of registered subjects at the site</td>\n</tr>\n<tr>\n<td><code>site_reg_users</code></td>\n<td>integer</td>\n<td>Number of registered users at the site</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"example-response\">Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"study_sites\": [\n    {\n      \"site_id\": 101,\n      \"site_name\": \"North Valley Clinic\",\n      \"site_type\": 1,\n      \"site_type_txt\": \"Provider\",\n      \"site_active\": true,\n      \"site_id_no\": \"NVC-001\",\n      \"role_id\": 2,\n      \"site_version\": 12,\n      \"site_version_txt\": \"12.0\",\n      \"site_reg_subjects\": 34,\n      \"site_reg_users\": 7\n    },\n    {\n      \"site_id\": 102,\n      \"site_name\": \"Eastside Research Hub\",\n      \"site_type\": 2,\n      \"site_type_txt\": \"Administrative\",\n      \"site_active\": true,\n      \"site_id_no\": \"ERH-002\",\n      \"role_id\": 1,\n      \"site_version\": 15,\n      \"site_version_txt\": \"15.0\",\n      \"site_reg_subjects\": 58,\n      \"site_reg_users\": 12\n    },\n    {\n      \"site_id\": 103,\n      \"site_name\": \"Westbrook Medical Center\",\n      \"site_type\": 1,\n      \"site_type_txt\": \"Provider\",\n      \"site_active\": false,\n      \"site_id_no\": \"WMC-003\",\n      \"role_id\": 3,\n      \"site_version\": 10,\n      \"site_version_txt\": \"10.0\",\n      \"site_reg_subjects\": 12,\n      \"site_reg_users\": 4\n    }\n  ]\n}\n\n</code></pre>\n","urlObject":{"path":["api","site","1"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d7353391-dc55-411d-9814-fbab63c4525c"},{"name":"Get Subjects /1/<site_id>","id":"8cc5accd-bea0-4615-899e-428e4e3780f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/subject/1/1","description":"<p>Retrieves the subjects registered for a specific site.</p>\n<p><strong>Method &amp; endpoint</strong>\n<code>GET {{tk_baseurl}}/api/subject/1/:site_id</code></p>\n<p><strong>Path parameter</strong>\nThe <code>site_id</code> value in the path identifies the site whose subjects are being returned.</p>\n<p><strong>Headers / auth</strong>\nThis request uses the evident headers below:</p>\n<ul>\n<li><code>From: {{tk_from}}</code></li>\n<li><code>Authorization: {{tk_auth}}</code></li>\n</ul>\n<p><strong>Request body</strong>\nThis request does not send a body.</p>\n<p><strong>Sample response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"reg_form_id\": 141,\n  \"reg_form_name\": \"Registration\",\n  \"subject_count\": 30,\n  \"subject_list\": [\n    {\n      \"sub_id\": 43,\n      \"sub_profile_id\": \"01-028\",\n      \"sub_reg_status\": 1,\n      \"sub_tx_start\": \"10-Oct-2025\",\n      \"sub_reg_trans_id\": 374,\n      \"sub_ver_id\": 1,\n      \"sub_ver_txt\": \"1.0\"\n    },\n    {\n      \"sub_id\": 14,\n      \"sub_profile_id\": \"01-004\",\n      \"sub_reg_status\": 1,\n      \"sub_tx_start\": \"23-Mar-2024\",\n      \"sub_reg_trans_id\": 256,\n      \"sub_ver_id\": 1,\n      \"sub_ver_txt\": \"1.0\"\n    },\n    {\n      \"sub_id\": 25,\n      \"sub_profile_id\": \"01-014\",\n      \"sub_reg_status\": 1,\n      \"sub_tx_start\": \"02-Jul-2024\",\n      \"sub_reg_trans_id\": 307,\n      \"sub_ver_id\": 1,\n      \"sub_ver_txt\": \"1.0\"\n    }\n  ]\n}\n</code></pre>\n<p>The full response from the most recent successful run returned 30 subjects.</p>\n","urlObject":{"path":["api","subject","1","1"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8cc5accd-bea0-4615-899e-428e4e3780f1"},{"name":"Get All Recs for Subject /3/<sub_id>/-1","id":"a765a64b-5405-4313-adba-850f11efb619","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/subject/3/2/-1","urlObject":{"path":["api","subject","3","2","-1"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a765a64b-5405-4313-adba-850f11efb619"},{"name":"Get Form Data Form/7/<TransID>","id":"5fceb98d-a716-414f-b399-ab89f4d0a7dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/form/7/6","urlObject":{"path":["api","form","7","6"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5fceb98d-a716-414f-b399-ab89f4d0a7dd"},{"name":"Get Query/4/<trans_id>","id":"3aad6484-9f11-45e6-8163-736481c4890a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/query/4/6","urlObject":{"path":["api","query","4","6"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3aad6484-9f11-45e6-8163-736481c4890a"},{"name":"Get Query All Codes query/8","id":"2a2b07d2-abdb-4d84-a186-5989e2d389e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/query/8","urlObject":{"path":["api","query","8"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a2b07d2-abdb-4d84-a186-5989e2d389e3"},{"name":"Get Query Codes/2/<query_type>","id":"11bb1935-7302-4105-a3dc-90b4c28d4597","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/query/2/3","urlObject":{"path":["api","query","2","3"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"11bb1935-7302-4105-a3dc-90b4c28d4597"},{"name":"Get List of Roles /1","id":"9c47ad79-f079-4ec9-9031-fdd6edc8ce53","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"from","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/role/1","urlObject":{"path":["api","role","1"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c47ad79-f079-4ec9-9031-fdd6edc8ce53"},{"name":"Create Field Query /1","id":"ebe8bfd7-01e0-4ed4-b4a6-e33fbd4bcf99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"From","value":"Di84bhd^ghwQ12#mxR$A!7Unhyu23Roo","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\"qc_id\":4,  // ID of the query type\r\n\"qu_desc\":\"55555 The date does not match source, please confirm data is correct\",  //Text field to describe the query\r\n\"qu_fld_id\":9,  // Field ID of the field to create the query\r\n\"qu_fld_name\":\"sfhs_date\", // Field name of the field to create the query\r\n\"qu_fld_value\":\"03-31-2026 10:48\",  //The value (old value) of the field being query, not required if field being query is empty\r\n\"qu_roles\":[2,1,3,6], // The role ids of who the query should be deployed to\r\n\"qu_table_id\":-1, // If creating a query on table, the table ID where the field exists.\r\n\"qu_table_row\":-1, // If creating a query on table, the row id of where the field exists.\r\n\"qu_table_row_pk\":-1, // If create a query on table, the trans_id of the row where the query is being created.\r\n\"qu_trans_id\":6} // Trans_id of for to create the query","options":{"raw":{"language":"json"}}},"url":"{{tk_baseurl}}/api/query/1","urlObject":{"path":["api","query","1"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ebe8bfd7-01e0-4ed4-b4a6-e33fbd4bcf99"},{"name":"Create Form Query /4","id":"365e6a75-b929-4406-a778-c3bbdcc1a185","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\"qc_id\":2,  // ID of the query type\r\n\"qu_desc\":\"This is a form query\",  //Text field to describe the query\r\n\"qu_roles\":[2,1,3,6], // The role ids of who the query should be deployed to\r\n\"qu_trans_id\":6} // Trans_id of for to create the query","options":{"raw":{"language":"json"}}},"url":"{{tk_baseurl}}/api/query/4","urlObject":{"path":["api","query","4"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"365e6a75-b929-4406-a778-c3bbdcc1a185"},{"name":"Get Protocol Versions (version/1)","id":"94d9c318-364e-4bce-8052-41a70f35a5a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"},{"key":"User-Agent","value":"api/1.0","type":"text"},{"key":"from","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"Basic {{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/version/1","urlObject":{"path":["api","version","1"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"94d9c318-364e-4bce-8052-41a70f35a5a9"},{"name":"Export Data exportschedule/7","id":"b47869a7-8779-443c-b68e-6de400cfcb41","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"from","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\"st_id\": 585,  //study id of the study to extract data from\r\n\"incArchived\": false, //Include Archived Records in results set\r\n\"incDeleted\": false, //Include Deleted Records in results set\r\n\"incAdmin\": true, // Include Admin Site Subject Records\r\n\"incDraft\": false, // Include Draft Records\r\n\"incSubjectemail\": false, //Include email for epro subjects\r\n\"form_id\" : 382, // the form id of the form data to return\r\n\"prot_id\": 38, // the protocol version of the data to return (multiple versions of 1 form can exist in a study)\r\n\"fldinfo\": false,  // return data dictionary information of the form and not the patient data\r\n\"offset\": 2, //Allows for chunking large data sets.\r\n\"limit\": 5, //returns the max number of rows, if blank no more rows.\r\n\"count_only\": false} // only returns a count of the number of forms saved","options":{"raw":{"language":"json"}}},"url":"{{tk_baseurl}}/api/exportschedule/7","urlObject":{"path":["api","exportschedule","7"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b47869a7-8779-443c-b68e-6de400cfcb41"},{"name":"Get Cohort List (visit/3)","id":"3d2a2236-1676-41bd-9d21-8391e5f0f625","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}r/api/visit/3","urlObject":{"path":["api","visit","3"],"host":["{{tk_baseurl}}r"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d2a2236-1676-41bd-9d21-8391e5f0f625"},{"name":"Get Visit Scheduled for Cohort (visit/1<coh_id>)","id":"dcc62f06-0947-4f32-af6e-f6add2b8da41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/visit/1/1","urlObject":{"path":["api","visit","1","1"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dcc62f06-0947-4f32-af6e-f6add2b8da41"},{"name":"Get Visits For Subject Study ID subject/704","id":"dc8166e5-1095-4867-812c-2f435356fe5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\"st_id\": 9931,\r\n\"sub_id\": 1}","options":{"raw":{"language":"json"}}},"url":"{{tk_baseurl}}/api/subject/704","urlObject":{"path":["api","subject","704"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc8166e5-1095-4867-812c-2f435356fe5e"},{"name":"Get Current Server","id":"33948c5d-0320-4bdf-ac24-ff561351226b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"https://toc.clinicalstudio.com/api/toc/1","urlObject":{"protocol":"https","path":["api","toc","1"],"host":["toc","clinicalstudio","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"33948c5d-0320-4bdf-ac24-ff561351226b"},{"name":"Set Active Study (user/2)","id":"947e3e2e-db79-473a-83f3-30897117e403","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"from","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"st_id\": \"8104\" //Study ID of the study to be set as the \"Active\" study. All subsequent calls will work with the Active study\r\n}","options":{"raw":{"language":"json"}}},"url":"{{tk_baseurl}}/api/user/2","urlObject":{"path":["api","user","2"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"947e3e2e-db79-473a-83f3-30897117e403"},{"name":"Set Active Site (site/9)","id":"0a67f7a9-41dc-4ef0-8f2f-9befe190a4d0","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"from","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"curr_site_id\": \"75\"  //db site id to set as active site. All subsequent API calls will read/write data if site is not specified in payload.\r\n}","options":{"raw":{"language":"json"}}},"url":"{{tk_baseurl}}/api/site/9","urlObject":{"path":["api","site","9"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a67f7a9-41dc-4ef0-8f2f-9befe190a4d0"},{"name":"Create Enrollment Form","id":"bc3acc4c-3ec1-4e6d-ab16-91bc5d2ad950","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"from","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"Basic {{tk_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\"field_value_list\": [\r\n    {\"fld_id\": \"3\",\"fld_value\": \"09-Aug-2021\",\"fld_name\": \"ENROLLDATE\"},\r\n    {\"fld_id\": \"4\",\"fld_value\": \"1\",\"fld_name\": \"RADIO1\"},\r\n    {\"fld_id\": \"9\",\"fld_value\": \"2\",\"fld_name\": \"GENDER\"},\r\n    {\"fld_id\": \"12\",\"fld_value\": 33,\"fld_name\": \"AGE\"},\r\n    {\"fld_id\": \"21\",\"fld_value\": true,\"fld_name\": \"PAPERCONSENT\"}],\r\n\"sub_profile_id\": \"xxx123\"}","options":{"raw":{"language":"json"}}},"url":"{{tk_baseurl}}/api/form/16","description":"<p>Creates a new subject registration form to generate a new Participant ID</p>\n<p>Required variables and headers: <code>{{tk_baseurl}}</code> for the API base URL, <code>from: {{tk_from}}</code>, and <code>Authorization: Basic {{tk_auth}}</code>.</p>\n<p>Request body: JSON with <code>field_value_list</code> and <code>sub_profile_id</code>. <code>field_value_list</code> is an array of field objects containing <code>fld_id</code>, <code>fld_value</code>, and <code>fld_name</code>. Current examples include values for <code>ENROLLDATE</code>, <code>RADIO1</code>, <code>GENDER</code>, <code>AGE</code>, and <code>PAPERCONSENT</code>. <code>sub_profile_id</code> should be set to the target subject profile ID.</p>\n<p>Example note: the current body posts to <code>/api/form/16</code> and uses mixed value types in <code>fld_value</code> such as string, number, and boolean.</p>\n","urlObject":{"path":["api","form","16"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc3acc4c-3ec1-4e6d-ab16-91bc5d2ad950"},{"name":"Create Subject Form","id":"d882377a-3a0f-4e6b-90cf-d9805c0a9a38","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"from","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"Basic {{tk_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\"field_value_list\": [\r\n    {\"fld_id\": \"36\",\"fld_value\": 1, \"fld_name\": \"QUEST_1\"},\r\n    {\"fld_id\": \"30\",\"fld_value\": 180 ,\"fld_name\": \"QUEST_2\"},\r\n    {\"fld_id\": \"40\",\"fld_value\": 80,\"fld_name\": \"QUEST_3\"},\r\n    {\"fld_id\": \"45\",\"fld_value\": 98.6,\"fld_name\": \"QUEST_4\"},\r\n    {\"fld_id\": \"5\",\"fld_value\": \"22-Nov-2021\",\"fld_name\": \"VISIT_DATE\"}],\r\n\"form_id\": 224,\r\n\"int_id\": 6,\r\n\"sub_id\": 2}\r\n\r\n    \r\n    \r\n","options":{"raw":{"language":"json"}}},"url":"{{tk_baseurl}}/api/form/17","urlObject":{"path":["api","form","17"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d882377a-3a0f-4e6b-90cf-d9805c0a9a38"},{"name":"Update Subject Form","id":"2249ed77-f6bf-492b-a9a8-af809231282b","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"from","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"Basic {{tk_auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\"field_value_list\": [\r\n    {\"fld_id\": \"36\",\"fld_value\": 200, \"fld_name\": \"QUEST_1\"},\r\n    {\"fld_id\": \"30\",\"fld_value\": 300 ,\"fld_name\": \"QUEST_2\"},\r\n    {\"fld_id\": \"40\",\"fld_value\": 0,\"fld_name\": \"QUEST_3\"},\r\n    {\"fld_id\": \"45\",\"fld_value\": 100,\"fld_name\": \"QUEST_4\"},\r\n    {\"fld_id\": \"5\",\"fld_value\": \"22-Nov-2021\",\"fld_name\": \"VISIT_DATE\"}],\r\n\"form_id\": 224,\r\n\"int_id\": 6,\r\n\"trans_id\": 4,\r\n\"sub_id\": 2}\r\n\r\n    \r\n    \r\n","options":{"raw":{"language":"json"}}},"url":"{{tk_baseurl}}/api/form/17","urlObject":{"path":["api","form","17"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2249ed77-f6bf-492b-a9a8-af809231282b"},{"name":"Get Unscheduled Visits (visit/2/<ver_id>)","id":"972908e9-f16c-4c3e-927e-1ea50a8c24bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/visit/2/38","urlObject":{"path":["api","visit","2","38"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"972908e9-f16c-4c3e-927e-1ea50a8c24bb"},{"name":"Get Review Levels reviewlevel/1","id":"5d85b4aa-cd1d-4cfe-b9e1-e18c02c011b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"From","value":"{{tk_from}}","type":"text"},{"key":"Authorization","value":"{{tk_auth}}","type":"text"}],"url":"{{tk_baseurl}}/api/reviewlevel/1","urlObject":{"path":["api","reviewlevel","1"],"host":["{{tk_baseurl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5d85b4aa-cd1d-4cfe-b9e1-e18c02c011b2"},{"name":"New Request","id":"7fcc19a4-b7a2-41ea-915a-ac969a94b057","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"7fcc19a4-b7a2-41ea-915a-ac969a94b057"},{"name":"New Request","id":"9b3fe200-d997-4a13-9ec0-fc1d3f96844e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"9b3fe200-d997-4a13-9ec0-fc1d3f96844e"}]}