Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GET /Surveys- http://api.spectrumsurveys.com/suppliers/v2/Surveys

GET /Surveys/:Survey_id - http://api.spectrumsurveys.com/suppliers/v2/Surveys/:Survey_id

GET /Surveys/:Survey_id/PSIDRef http://api.spectrumsurveys.com/suppliers/v2/Surveys/:Survey_id/PSIDRef

GET /Surveys/:Survey_id/PSIDEligible http://api.spectrumsurveys.com/suppliers/v2/Surveys/:Survey_id/PSIDEligible?PSID=%PSID%

...

 or  GET /Surveys/:Survey_id call. The value of Include Exclude will not change for a survey which goes live. 


Info

"incl_excl":0 indicates PSIDRef is an exclude list

"incl_excl":1 indicates PSIDRef is an include list

API Response for GET /surveys/:survey_id/PSIDref

...

Parameter

Type

Description

Nullable

text

string

The text of the question asked to the respondent


descstringA description of the question that is asked of the respondent
catstringCategory name of the question that is asked of the respondent

type

integer

1=singlepunch (only one selection is allowed, presented in dropdown form)

2=singlepunch-alt (only one selection is allowed - presented in push button form)

3=multipunch (multiple selections are allowed, presented in push button form)

4=range (not currently supported)



classinteger

1 = Core profiling question

2 = Extended profiling question

3 = Custom profiling question


condition_codesPSIDRefarray

contains the condition codes and condition code texts

crtd_onUTC Timestamp in milliseconds since Unix EpochTimestamp of when this attribute was createdmod_onUTC Timestamp in milliseconds since Unix EpochTimestamp of when this attribute was modified. This may include a change in text, addition or modification of condition codes. In case the mod_on has changed since your last sync, delete the qualification in your system and recreate it to prevent inconsistencies

Contains a list of  "PSIDRef" numbers which fall either under include or exclude category.










HTTP Response Codes


Response

Status

Description

200

OK


400Bad RequestSee Error Messages
404Not FoundQualification code doesn't exist in database

5xx

Internal Server Error

Please Report to support@purespectrum.com

...