Web API

 

Creating a subject with the Web API

Enables you to create a new subject for a particular study/site combination.

The subject will have an automatically-generated subject ID.

 

You must include an authorization token in this request which is generated from the /token call.

URL

https://localhost/webapi/api/createSubject/newSubject [parameters]

Method

POST

Parameters

Parameter

Type

Description

site

string

Site code

study

string

Study name

Response

Example

Create a new subject at site 'London' in study 'Demostudy40':

 

POST /api/createSubject/newSubject?site=London&study=demostudy40

Host: localhost/webapi

Content-Type: application/x-www-form-urlencoded

Authorization: Bearer [Token]

Return to top

 

Related Topics