createSubject
This method is to create a new subject. Then you can associate the subject to a record when you call createRecord.
This method was added in Cortex 2.1
Parameters
Name
Type
Required
Description
cortexToken
string
yes
subjectName
string
yes
The name of the subject. Must be 30 characters or less.
dateOfBirth
string
no
The date of birth of the subject. The format must be "YYYY-MM-DD", e.g. "1980-12-25".
sex
string
no
Must be "M", "F" or "U". These letters stands for male, female and unknown respectively.
countryCode
string
no
state
string
no
The state the subject lives in.
city
string
no
The city the subject lives in.
attributes
array of objects
no
Result
The result is a subject object representing the new subject.
Examples
Create a subject with only his name.
Create a subject with more information.
Last updated