/membervariables
This resource allows interaction with a collection of all Member Variables.
Resource URL
/v1/applications/{communityApiKeyName}/membervariables
Use the appropriate regional endpoint to ensure that you comply with your organization's privacy policy, and applicable laws and regulations. For details about the available regional endpoints, and how to identify your organization's region, see API Access.
Available Methods
Method | Description |
---|---|
GET | Get a collection of Member Variables. |
POST | Create a Member Variable. |
Parameters
Parameters can be appended to the request to further refine the results returned.
Operation | Description | Example |
---|---|---|
Refine the response by field | To reduce the number of fields returned, specify the fields in a comma separated list. | /membervariables?fields=constraints
|
Filtering by value | By default, all the items are returned
unless you specify your criteria using the variable name and value
You can filter the response on the values in all of the
available fields except for:
|
/membervariables?name=satisfaction
|
Paging | The default is 20 items are returned at a time and the maximum is 1000. | Use the
limit and
offset query string parameters to effectively
page through the results.
|
Sorting | You can sort the results on all of the
available fields except for:
|
/membervariables?sort=type:d
|
For more information, see Content control.
Field Descriptions
Field | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
categories
|
The string value for the member variable
category. Possible values are
profileVariable ,
systemVariable . or both.
|
||||||||||||
constraints
|
The
constraints collection specifies a set of
behaviors that the system will implement for a given Member Variable. For the
most part, these need not be adjusted from their defaults. For each supported
constraint in the collection, a boolean value is recorded.
|
||||||||||||
createdBy
|
The GUID for the user who created the record. | ||||||||||||
createDate
|
The date timestamp (UTC) for when the record was created. | ||||||||||||
dataType
|
The string value for the value definition
(for example,
number ).
A Member Variable also has a
A
|
||||||||||||
description
|
The string name for the member variable. | ||||||||||||
id
|
The GUID for the given member variable. | ||||||||||||
href
|
A link that points to specific member variable. | ||||||||||||
lastUpdatedBy
|
The GUID for the user who last updated the record. | ||||||||||||
lastUpdateDate
|
The date timestamp (UTC) for when the record was last updated. | ||||||||||||
links
|
This field is always empty. | ||||||||||||
memberVariableValues
|
The link that points to the member variable values. | ||||||||||||
name
|
The string name for the member variable. | ||||||||||||
referenceMemberVariableId
|
The profile variable referenced by a
calculated date profile variable. This field is only returned for calculated
dates. The referenced variable must be set with the
type: Open and the
dataType: Date .
|
||||||||||||
sensitive
|
The boolean value indicating whether or not
the variable is eligible to be purged or modified.
You cannot POST a new value to the
following
|
||||||||||||
sequenceId
|
This is an internal field. | ||||||||||||
source
|
The string value for the variable type.
Possible values are:
This field may also be empty. |
||||||||||||
type
|
The string value for question type.
Possible values are:
Note: Both
singleChoice and
multiChoice indicate a finite list of
choices. For example, a list of answer options in a Multiple Choice question.
|
GET response structure |
---|
|
POST Behavior
The
/membervariables
resource can be created by sending a
POST request either for a single item or a collection to
/membervariables
.
Property | Required on POST? | Default | Notes |
---|---|---|---|
categories
|
No | ["profileVariable"]
|
|
constraints
|
No | false for all
|
|
dataType
|
No | text
|
|
description
|
No | Proper-cased
name
|
The maximum number of characters is 2000. |
name
|
Yes | User input required, lowercased | The maximum number of characters is 400. |
referenceMemberVariableId
|
No | A field ID, or list of field IDs | Used for Calculated Date profile variables |
sensitive
|
No | false | For Calculated Dates, indicates that the referenced profile variable is sensitive. |
source
|
No | Empty string | |
type
|
No | singleChoice
|
Example: POST /membervariables |
---|
|
Sensitive Fields
All of the Member Variables contain a boolean property named
sensitive
. This property indicates whether or not the
variable is eligible to be purged or modified.
You cannot POST a new value to the following
sensitive
system variables:
-
email
-
firstname
-
lastname
-
name
-
signupemail
-
signupfirstname
-
signuplastname
-
unsubscribereasonother
-
username
Example: System Variable |
---|
The following is an example of the
|
System variables
System variable | Variable name | Description |
---|---|---|
email
|
The member's email address. | |
First Name | firstname
|
The member's first name. |
Forum Responder Type |
forumrespondertype
|
The member's participation status in a forum. Possible values are:
|
GCM Device Tokens |
gcmdevicetokens
|
This field has been deprecated. |
Join Date |
joindate
|
The date on which the member confirmed that they were joining the community. |
Join Date |
joindate
|
The date on which the member confirmed that they were joining the community. |
Last Login Date |
lastlogindate
|
The last date on which a member signed in to the portal. |
Last Name |
lastname
|
The member's last name. |
Member Status |
memberstatus
|
The current status of the member in the
system.
Possible values are:
|
Name |
name
|
The name of the member. |
Recruitment Communication ID | recruitmentcommunicationid
|
The unique ID associated with a recruitment's distribution email or recruitment link. |
Recruitment Method |
recruitmentmethod
|
The method through which a member was
recruited.
Possible values are:
|
Recruitment Source |
recruitmentsource
|
The member's recruitment source (for example, a recruitment link posted on social media or a CSV upload). |
Recruitment Status |
recruitmentstatus
|
The member's status in the recruitment process. Possible values are:
|
Sign Up Email |
signupemail
|
The email address the member used to join the community. |
Sign Up First Name |
signupfirstname
|
The member's first name at the time they joined the community. |
Sign Up Last Name |
signuplastname
|
The member's last name at the time they joined the community. |
Sign Up Recruitment Stats |
signuprecruitmentstatus
|
The member's status in the sign up process.
Possible values are:
|
Survey Responder Type |
surveyrespondertype
|
The member's survey participation status. Possible values are:
|
Unsubscribe Reason |
unsubscribereason
|
The reason why a member has requested their removal from the community and unsubscribed themselves. During the unsubscribe process, the application asks members an optional question about why they are leaving the community. Possible values are:
|
Unsubscribe Reason (other) |
unsubscribereasonother
|
The exact reason why members have requested
their removal from the community and unsubscribed themselves, if they chose
Other for
unsubscribereason .
|
Upload ID | uploadid
|
The unique ID for the CSV upload. |
Username |
username
|
The member's username for the community. |