younifyd
Menu

Submit Answer

Submit an answer

POST/data/submitanswer.json

Use it in a workflow

  1. Add a step and choose the Bazaarvoice connector.
  2. Pick the Submit Answer action (under submission).
  3. Fill in the fields below, then reference the result from later steps as {{submitAnswer.response.data}}.

Request

Query parameters

ApiVersionstringrequired

The API version, e.g. 5.4.

PassKeystringrequired

API key is required to authenticate API user and check permission to access particular client's data.

Headers

X-Forwarded-Fornumber

IP address of content author. This header is only necessary when performing submissions from your server. See Authenticity Tutorial for more information. Per the Bazaarvoice Authenticity Policy, you must send author IP address attached to each submission. If you fail to send author IP address with your submission, Bazaarvoice may take any action deemed necessary in Bazaarvoice’s sole discretion to protect the integrity of the network. Such actions may include but are not limited to: rejection of your content, halting syndication of your content on the Bazaarvoice network, revocation of your API key, or revocation of your API license. Alert Failure to submit this field will result in your content being ineligible for syndication, authenticity or other business processes.

Content-Typestringrequired

The media-type type of the request body. Value must be application/x-www-form-urlencoded. Required This field is required in all API requests.

Request body

Enter the body as JSON in the step's Body field.

QuestionIdstring

The id of the question that this answer is being submitted on.

Actionstring

The submission action to take -- either 'Action=', 'Action=Preview' or 'Action=Submit'. 'Action=' will show information that can be used to build a submission form, 'Action=Preview' will show a draft of the content to be submitted; 'Action=Submit' will submit the content. If 'Action=Submit', the request must be an HTTP POST.

AnswerTextstring

Contains the text of the answer.

UserIdstring

User's external ID. This value should come from your authentication system. See Client-Mastered Authentication for more information. Alert Do not use an email address for this value.

fpstring

Fingerprint of content author's device. See the Authenticity Tutorial for more information. Per the Bazaarvoice Authenticity Policy, you must send a device fingerprint attached to each submission. If you fail to send a device fingerprint with your submission, Bazaarvoice may take any action deemed necessary in Bazaarvoice’s sole discretion to protect the integrity of the network. Such actions may include but are not limited to: rejection of your content, halting syndication of your content on the Bazaarvoice network, revocation of your API key, or revocation of your API license. Alert Failure to submit this field will result in your content being ineligible for syndication, authenticity or other business processes.

AgreedToTermsAndConditionsboolean

Boolean indicating whether or not the user agreed to the terms and conditions. Required depending on the client's settings.

CampaignIdstring

Arbitrary text that may be saved alongside content to indicate vehicle by which content was captured, e.g. “post-purchase email”.

HostedAuthentication_AuthenticationEmailstring

Email address where the submitter will receive the confirmation email. If you are configured to use hosted email authentication, this parameter is required. See the Authenticate User method for more information on hosted authentication.

HostedAuthentication_CallbackUrlstring

URL of the link contained in the user authentication email. This should point to a landing page where a web application exists to complete the user authentication process. The host for the URL must be one of the domains configured for the client. The link in the email will contain a user authentication token (authtoken) that is used to verify the submitter. If you are configured to use hosted email authentication, this parameter is required. See the hosted authentication tutorial for more information

Localestring

Locale to display Labels, Configuration, Product Attributes and Category Attributes in. The default value is the locale defined in the display associated with the API key. Alert Failure to submit this field will result in your content being ineligible for syndication, authenticity or other business processes.

PhotoCaption_<n>string

Value is caption text for the photo URL with the same value of <n>.

PhotoUrl_<n>string

Value is a Bazaarvoice URL of a photo uploaded using the Data API, where <n> is a non-negative integer.

SendEmailAlertWhenPublishedboolean

Boolean indicating whether or not the user wants to be notified when his/her content is published.

Userstring

Value of the encrypted user. This parameter demonstrates that a user has been authenticated. Note that the UserId parameter does not contain authentication information and should not be used for hosted authentication. See the Authenticate User method for more information.

UserEmailstring

User's email address.

UserLocationstring

User location text.

UserNicknamestring

User nickname display text.

json
{
  "QuestionId": "1483881",
  "Action": "submit",
  "AnswerText": "Age is under 18",
  "UserId": "testi2",
  "fp": "0400Ia/vP4SUWbEXk1Rjuv1iJmSjiw6jjNGA14xr7X6xRXldg3Eo6XtD78oKt7mA8bo/mtBit",
  "AgreedToTermsAndConditions": "true",
  "CampaignId": "Campaignid1",
  "HostedAuthentication_AuthenticationEmail": "dummy@dummy.com",
  "HostedAuthentication_CallbackUrl": "https://dummy.com",
  "Locale": "en_US",
  "PhotoCaption_<n>": "Dummy caption for photo",
  "PhotoUrl_<n>": "https://dummy.com/abc.jpg"
}

Response

Returns 200 with an object. Read it in later steps with {{submitAnswer.response.data.<field>}}.

Dataobject
HasErrorsboolean
Formarray<object>
FormErrorsobject
Answerobject
SendEmailAlertWhenPublishedboolean

Flag indicating whether to send an email alert when the answer is published.

SubmissionTimestring

The submission time of the answer.

TypicalHoursToPostnumber

The typical number of hours it takes for the answer to be posted.

Idstring

The ID of the answer.

SubmissionIdstring

The submission ID of the answer.

AnswerTextstring

The text content of the answer.

TypicalHoursToPostnumber

The typical number of hours it takes for a submission to be posted.

SubmissionIdstring

The submission ID.

Localestring

The locale of the answer.

Errorsarray<object>
json
{
  "Data": {},
  "HasErrors": false,
  "Form": [
    {}
  ],
  "FormErrors": {},
  "Answer": {
    "SendEmailAlertWhenPublished": false,
    "SubmissionTime": "string",
    "TypicalHoursToPost": 0,
    "Id": "string",
    "SubmissionId": "string",
    "AnswerText": "string"
  },
  "TypicalHoursToPost": 0,
  "SubmissionId": "string",
  "Locale": "string",
  "Errors": [
    {}
  ]
}

Need more? See the Bazaarvoice guide for connection setup and behaviour shared by every action.

Submit Answer — Bazaarvoice — Documentation