Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor

The PureSpectrum API is a REST based API.

...

URL Structure

  • {Base URI}/{Module}/{API Version}/{Resource}
  • eg: https://staging.spectrumsurveys.com/buyers/v2/surveys  

Base URLs

Base URL - API Staging: https://staging.spectrumsurveys.com/buyers/v2

...

VerbResourceDescription
POST/surveysCreate survey
PATCH/surveys/:survey_idUpdate survey status

GET

/surveys/:survey_idGet survey information
PUT/surveys/:survey_idEdit survey
DEL/surveys/:survey_idDelete survey
POST/surveys/:survey_id/qualificationsCreate qualification
GET/surveys/:survey_id/qualifications/:qualification_idGet qualification information
PUT/surveys/:survey_id/qualifications/:qualification_idUpdate qualification information
DEL/surveys/:survey_id/qualifications/:qualification_idDelete qualification
POST/surveys/:survey_id/quotasCreate quota
PATCH/surveys/:survey_id/quotas/:quota_idUpdate quota
GET/surveys/:survey_id/quotas/:quota_idGet quotas by Quota ID
PUT/surveys/:survey_id/quotas/:quota_idAdd quota
DEL/surveys/:survey_id/quotas/:quota_idDelete quota
GET/surveys/:survey_id/statusGet survey status
GET/surveys/:survey_id/performanceGet survey performance
GET/surveys/:survey_id/quotas/performanceGet quota performance
POST/surveys/:survey_id/PSIDRefCreate PSID reference list
PATCH/surveys/:survey_id/PSIDRefUpdate PSID reference list
GET/surveys/:survey_id/PSIDRefGet PSID reference list
GET/surveygroups/:survey_group_idGet survey group
PUT/surveygroups/:survey_group_idEdit survey group
DEL/surveygroups/:survey_group_idDelete survey group
POST/surveygroups/:survey_group_idCreate survey group

Response Content Type

...

Parameter

Type

Required

Description

access-token

String

Yes

Token used to identify the authenticity of the user.


Example:  headers: { 'access-token': '$accessToken' }

Warning

Please do not expose your access-token to anyone or in public as this could compromise the Integrity of your integration.

Access tokens are issued by your PureSpectrum representative. 

...