Experiments

Manage all the experiments in you subscription plan

Get all experiments

Get all experiments that have been added to the school's website

{Tenant endpoint}/experiments

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
No parameters required for this request.

Get filter partials

Get filter partials, including categories, subcategories, curriculums with semesters, and recommended grades, used in experiment filtering

{Tenant endpoint}/experiments/partials

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description

Get experiment filter results

Get experiment filter results based on one or more filter options obtained from filter partials. Additionally, conduct a search using criteria such as English name, Arabic name, semester, recommended grade, and curriculum

{Tenant endpoint}/experiments/filter

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
text optional string takes the name , arabic name , grade , semester , recommended grade and curriculum .
category optional string takes the name of the category .
sub_category optional string takes the name of the sub category .

Get all experiments in the plan (that are in your plan and can be added to you experiments list)

{Tenant endpoint}/experiments/available

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
No parameters required for this request.

Add experiments from available list to your experiments list

{Tenant endpoint}/experiments

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
experiments YES array array of integers , which are the id's of the experiments from the list of available experiments .

Get all experiments with tags (you experiments)

{Tenant endpoint}/experiments/tags

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
No parameters required for this request.

Get all experiments categories (in your plan)

{Tenant endpoint}/experiments/categories

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
No parameters required for this request.

Get specific experiment

{Tenant endpoint}/experiments/{experiment_id}

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
experiment_id YES Integer the id of the desired experiment to get (from your list of experiments) (send in the url not in the body of the request).

Get specific experiment with tags

{Tenant endpoint}/experiments/{experiment_id}/tags

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
experiment_id YES Integer the id of the desired experiment to get (from your list of experiments) (send in the url not in the body of the request).

Update experiment (after adding it to your list of experiments)

{Tenant endpoint}/experiments/{experiment_id}

type : or (if you send data as form data)

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
experiment_id YES Integer the id of the desired experiment to get (send in the url not in the body of the request).
name OPTIONAL string the name that the experiment's name will be update to.
recommended_grade OPTIONAL string the recommended grade for this experiment.
curriculum OPTIONAL string the curriculum for this experiment.
tags OPTIONAL array array of strings that represent the tags this experiment will have.

Delete experiment

{Tenant endpoint}/experiments/{experiment_id}

type :

headers
Name required type description
referer YES string The root of the application that is sending the request (your website at jusoorlabs.com)
accept YES string the basic accept header (always send it as application/json)
token YES string The token provided to you once you've registerd with Jusoor Labs API.
parameters
Name required type description
experiment_id YES Integer the id of the desired experiment to get (send in the url not in the body of the request).