Versions Compared

Key

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

POST /attributes - http://api.spectrumsurveys.com/buyers/v1/attributes

GET /attributes - http://api.spectrumsurveys.com/buyers/v1/attributes/:buyer_attribute_id

...

Call this API to view the respondent's question text, condition codes, and condition code texts for unfamiliar qualification codes/condition codes.  Survey_localization is a required Query String parameter.

...

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

Error Messages for GET call


Response

Description

1001Missing localization parameter.
1002Qualification doesn't exist in localization code.
1003Invalid Localization code.

9999

Unknown Error - Please Report to support@purespectrum.com

Error Messages for POST call


Response

Description

1001Invalid buyer attribute id.
1002Resp_ID is missing in the Question text.
1003Category is Invalid. Please check the documentationLocalization doesn't exist for this question.
1004Type can only take values of 1, 2 or 3.
1005Survey Localization is Invalid.
1006Buyer attribute ID is already used. Please use a new one. Use PUT to edit the attributes.
1007Invalid Survey Localization code.
1008Invalid JSON. Please check your request format.
1009Description is already used. Please use a new one.

9999

Unknown Error - Please Report to support@purespectrum.com

...