Skip to content

Create a Branch

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

This endpoint creates a new branch.

  • :space_id required number

    Numeric ID of a space

curl "https://mapi.storyblok.com/v1/spaces/606/branches/" \
-X POST \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"branch\":{\"name\":\"A new branch\",\"position\":2,\"source_id\":12332,\"url\":\"https://new_domain.com\"}}"

You will receive a branch object as a response.