Skip to content

Create a Preset

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

This endpoint can be used to create new presets.

  • :space_id required number

    Numeric ID of a space

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

You will receive a preset object as a response.