Skip to content

Create a Datasource Entry

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

Create a datasource entry in a specific datasource.

  • :space_id required number

    Numeric ID of a space

  • datasource_entry The Datasource Entry Object

    The datasource entry object

    Show child properties
    • name required string

      The key of a datasource entry

    • value required string

      The value of a datasource entry

    • datasource_id number

      Numeric ID of the datasource

curl "https://mapi.storyblok.com/v1/spaces/656/datasource_entries" \
-X POST \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"datasource_entry\":{\"datasource_id\":12345,\"name\":\"newsletter_text\",\"value\":\"Subscribe to our newsletter.\"}}"