updateSubject
This method is to update an existing subject.
This method was added in Cortex 2.1
Parameters
Name | Type | Required | Description |
cortexToken |
| yes | A token returned by authorize. |
subjectName |
| yes | The name of the subject. |
dateOfBirth |
| no | The date of birth of the subject. The format must be "YYYY-MM-DD", e.g. "1980-12-25". |
sex |
| no | Must be "M", "F" or "U". These letters stands for male, female and unknown respectively. |
countryCode |
| no | The Alpha-2 ISO code of the country the subject lives in. |
state |
| no | The state the subject lives in. |
city |
| no | The city the subject lives in. |
attributes |
| no | A list of demographic attribute objects. See Subject object. |
A subject is identified by his/her name, so you must provide the name of the subject you want to update. Then you can set one or more of the not required fields to update their value.
Result
The result is a subject object representing the updated subject.
Examples
Update the date of birth of a subject.
Last updated