Role assignments

You can assign a role to a multiple subjects into the given workspace for the given scopes with this endpoint. If you want to remove the role you can omit the role property.

post/api/role/{workspace_id}/batch/

Request

  • Base URL
    https://api.baserow.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.baserow.io/api/role/{workspace_id}/batch/
  • Auth
    HTTP bearer

Path parameters

workspace_idinteger required

The workspace in which the role assignment takes place.

Request body

Response

idinteger required
rolestring required

The uid of the role assigned to the user or team in the given workspace.

subject_idinteger required

The subject ID.

scope_idinteger required

The unique scope ID.

subject_type'auth.User' | 'anonymous' | 'user_source.user' | 'core.Agent' | 'core.Token' | 'builder_preview_actor' | 'baserow_enterprise.Team' required
  • auth.User - auth.User
  • anonymous - anonymous
  • user_source.user - user_source.user
  • core.Agent - core.Agent
  • core.Token - core.Token
  • builder_preview_actor - builder_preview_actor
  • baserow_enterprise.Team - baserow_enterprise.Team
scope_type'core' | 'application' | 'workspace' | 'workspace_invitation' | 'snapshot' | 'workspace_user' | 'integration' | 'user_source' | 'mcp_endpoint' | 'database' | 'database_table' | 'database_field' | 'database_view' | 'database_view_decoration' | 'database_view_sort' | 'database_view_group' | 'database_view_filter' | 'database_view_filter_group' | 'token' | 'builder' | 'builder_page' | 'builder_element' | 'builder_domain' | 'builder_data_source' | 'builder_workflow_action' | 'dashboard' | 'dashboard_data_source' | 'dashboard_widget' | 'automation' | 'automation_workflow' | 'automation_node' | 'team' | 'team_subject' | 'license' required
  • core - core
  • application - application
  • workspace - workspace
  • workspace_invitation - workspace_invitation
  • snapshot - snapshot
  • workspace_user - workspace_user
  • integration - integration
  • user_source - user_source
  • mcp_endpoint - mcp_endpoint
  • database - database
  • database_table - database_table
  • database_field - database_field
  • database_view - database_view
  • database_view_decoration - database_view_decoration
  • database_view_sort - database_view_sort
  • database_view_group - database_view_group
  • database_view_filter - database_view_filter
  • database_view_filter_group - database_view_filter_group
  • token - token
  • builder - builder
  • builder_page - builder_page
  • builder_element - builder_element
  • builder_domain - builder_domain
  • builder_data_source - builder_data_source
  • builder_workflow_action - builder_workflow_action
  • dashboard - dashboard
  • dashboard_data_source - dashboard_data_source
  • dashboard_widget - dashboard_widget
  • automation - automation
  • automation_workflow - automation_workflow
  • automation_node - automation_node
  • team - team
  • team_subject - team_subject
  • license - license

Changes

    • breaking

      added to the // request property allOf list (media type: application/json)

    • breaking

      added to the // request property allOf list (media type: application/x-www-form-urlencoded)

    • breaking

      added to the // request property allOf list (media type: multipart/form-data)

    • breaking

      removed the enum value database_workflow_action of the request property ////// (media type: application/json)

    • breaking

      removed the enum value database_workflow_action of the request property ////// (media type: application/x-www-form-urlencoded)

    • breaking

      removed the enum value database_workflow_action of the request property ////// (media type: multipart/form-data)

    • warning

      removed from the // request property allOf list (media type: application/json)

    • warning

      removed from the // request property allOf list (media type: application/x-www-form-urlencoded)

    • warning

      removed from the // request property allOf list (media type: multipart/form-data)

    • info

      the endpoint scheme security UserSource JWT was removed from the API

    • info

      added to the / response property allOf list for the response status

    • info

      removed from the / response property allOf list for the response status

    • info

      removed the database_workflow_action enum value from the ///// response property for the response status

    • breaking

      added to the // request property allOf list (media type: application/json)

    • breaking

      added to the // request property allOf list (media type: application/x-www-form-urlencoded)

    • breaking

      added to the // request property allOf list (media type: multipart/form-data)

    • warning

      removed from the // request property allOf list (media type: application/json)

    • warning

      removed from the // request property allOf list (media type: application/x-www-form-urlencoded)

    • warning

      removed from the // request property allOf list (media type: multipart/form-data)

    • info

      added to the / response property allOf list for the response status

    • info

      removed from the / response property allOf list for the response status