# Create a New Browser Router Profile Creates a new Browser Router profile in Draft state. ## Endpoints `POST /bsp/api/v1/bmp/browser_router` ## Request ### Request URL `https://{server-hostname}:8383/bsp/api/v1/bmp/browser_router` ### Scope `BrowserManager.CREATE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Content-Type** (`string`, Mandatory): `application/json` - **Accept** (`string`, Mandatory): `application/json` #### Request Body JSON body with profile name, description, platform type, and profile type (`64011` for Browser Router). `application/json` - `router_profile_name` (`string`, Optional): Display name for the browser router profile. Maximum 50 characters. - `PROFILE_TYPE` (`string`, Optional): Profile type constant. Must be `64011` for Browser Router. - `router_profile_description` (`string`, Optional): Description of the browser router profile. Optional, maximum 100 characters. - `PLATFORM_TYPE` (`string`, Optional): Platform type. `1` = Windows, `2` = Mac, `-1` = All platforms. ### Sample Request ```curl curl --request POST \ --url https://appdomain/bsp/api/v1/bmp/browser_router \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"router_profile_description":"Routes internal sites to Edge, others to Chrome","PROFILE_TYPE":64011,"PLATFORM_TYPE":"1","router_profile_name":"Corporate Router Policy"}' ``` ### Sample Request Body Create profile ```json { "router_profile_description": "Routes internal sites to Edge, others to Chrome", "PROFILE_TYPE": 64011, "PLATFORM_TYPE": "1", "router_profile_name": "Corporate Router Policy" } ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` - `router_profile_id` (`long`): Unique identifier for the browser router profile. - `router_profile_name` (`string`): Display name of the browser router profile. - `router_profile_description` (`string`): Description of the browser router profile. - `platform_type` (`string`): Platform type. `1` = Windows, `2` = Mac, `-1` = All platforms. - `latest_version` (`string`): Latest version number of the profile. - `latest_published_version` (`string`): Latest published version, or `--` if not yet published. - `PROFILE_TYPE` (`string`): Profile type. `64011` for Browser Router. - `SCOPE` (`string`): Profile scope. `0` = device scope. - `IS_MOVED_TO_TRASH` (`boolean`): Whether the profile is in the trash. - `COLLECTION_ID` (`long`): Collection reference ID for the profile. - `router_payload` (`JSON Array`): Payload configurations. ### HTTP Code 400 Response body: `application/json` - `error_description` (`string`): Message describing the invalid request. - `error_code` (`string`): Error code for invalid request. ### HTTP Code 401 Response body: `application/json` - `errorCode` (`long`): Unauthorized error code returned when authentication credentials are missing, expired, or invalid (authentication=required). - `errorMsg` (`string`): Authentication failure reason. ### HTTP Code 403 Response body: `application/json` - `errorCode` (`long`): Forbidden error code returned when the authenticated user does not have the required uem-roles (for example, `DataEncryption_Admin` or `DataEncryptionRecoveryKey_Admin`). - `errorMsg` (`string`): Message indicating insufficient privileges to access this resource. ### HTTP Code 429 Response body: `application/json` - `errorCode` (`long`): Rate limit error code returned when the API call threshold (configured via threshold/duration in security XML) is exceeded; client is locked out for lock-period minutes. - `errorMsg` (`string`): Rate limit exceeded message with retry guidance. ### HTTP Code 500 Response body: `application/json` - `error_description` (`string`): Message describing the server-side failure. - `error_code` (`string`): Internal server error code. ### Possible Response Codes - `200` HTTP code - `400` HTTP code - `401` HTTP code - `403` HTTP code - `429` HTTP code - `500` HTTP code ### Sample Response: HTTP 200 Created profile ```json { "router_profile_description": "Routes internal sites to Edge, others to Chrome", "IS_MOVED_TO_TRASH": false, "platform_type": 1, "latest_version": 1, "PROFILE_TYPE": 64011, "SCOPE": 0, "COLLECTION_ID": 222, "router_profile_name": "Corporate Router Policy", "latest_published_version": "--", "router_profile_id": 111, "router_payload": [] } ``` ### Sample Response: HTTP 400 Invalid request ```json { "error_description": "Bad Request", "error_code": "BAD_REQUEST" } ``` ### Sample Response: HTTP 401 Unauthorized ```json { "errorCode": "UNAUTHORIZED", "errorMsg": "You are not authorized to perform this action" } ``` ### Sample Response: HTTP 403 Forbidden ```json { "errorCode": "FORBIDDEN", "errorMsg": "You do not have permission to access this resource" } ``` ### Sample Response: HTTP 429 Rate limit exceeded ```json { "errorCode": "RATE_LIMIT_EXCEEDED", "errorMsg": "You have exceeded the maximum number of API calls. Please try again later." } ``` ### Sample Response: HTTP 500 Server error ```json { "error_description": "Internal Server error, Please try again in a moment.", "error_code": "COM0004" } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 60 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.