Skip to content

Update a Space Role

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

This endpoint allows you to update a space role by the numeric ID.

  • :space_id required number

    Numeric ID of a space

  • :space_role_id required number

    Numeric ID of the space role

curl "https://mapi.storyblok.com/v1/spaces/606/space_roles/18" \
-X PUT \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"space_role\":{\"allowed_languages\":[\"de\"],\"allowed_paths\":[430937198],\"asset_folder_ids\":[563628],\"branch_ids\":[30403],\"component_ids\":[5758347],\"datasource_ids\":[218499],\"field_permissions\":[\"a-new-blok.title\",\"A new comppppp.Text_type\",\"a-new-blok.image\",\"page.body\"],\"permissions\":[\"manage_block_library\",\"deny_component_technical_name_update\",\"deny_component_fields_name_update\",\"edit_image\",\"delete_stories\",\"deploy_stories\",\"unpublish_stories\",\"unpublish_folders\",\"publish_stories\",\"publish_folders\",\"manage-non-translatable-fields\"],\"readonly_field_permissions\":[\"A new comppppp.RichText_type\",\"A new comppppp.TextArea_type\",\"page.body\"],\"role\":\"Another new space role\",\"subtitle\":\"new desc\"}}"