Skip to content

Update a Preset

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/presets/:preset_id

This endpoint can be used to update presets using the numeric ID.

  • :space_id required number

    Numeric ID of a space

  • :preset_id required number

    Numeric ID of your preset

curl "https://mapi.storyblok.com/v1/spaces/606/presets/1814" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"preset\":{\"component_id\":62,\"name\":\"Teaser with headline and image\",\"preset\":{\"headline\":\"This is a default value for the preset!\",\"image\":\"//a.storyblok.com/f/606/...\"}}}"

You will receive a fully loaded preset object as response.