Stimuli

Set one metadata attribute

Set a single attribute, leaving the rest of the stimulus's metadata alone. An object value is flattened under the key and replaces anything already nested there; a null value removes the key.

put/api/v1/stimuli/{stimulus_id}/metadata/{key}

Request

  • Base URL
    https://app.voicepanel.com
  • URL
    https://app.voicepanel.com/api/v1/stimuli/{stimulus_id}/metadata/{key}
  • Auth
    HTTP bearer

Path parameters

stimulus_idstring required
Example:stim_3nK8xQw2PzLr7Y

The stimulus ID

keystring required
Example:cost

The metadata key

Request body

Response

Successful response

idstring required

The stimulus ID

study_idstring nullable required

ID of the study the stimulus belongs to

metadataobject required

Flat attributes. A key maps to a string, a number, a boolean, or a list of strings and numbers.

Example response

{
  "id": "stim_3nK8xQw2PzLr7Y",
  "study_id": "stdy_Qm3vR8tLp2XnWz",
  "metadata": {
    "cost": "low",
    "pricing.tier": "pro",
    "variant": 2
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.