Skip to content

Commit 608cb36

Browse files
feat: Support updating browser session name and tags via PATCH
1 parent e7b4ea2 commit 608cb36

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-f9a96fe14f0b3c93230a26f9b64827a35a19a28d4e7cd2719315c4d76cce78fc.yml
3-
openapi_spec_hash: 852e2a64b850f759ccbcf81b1579497a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-e66c3f8aedccc39104386a3ec619f3fdcef7e8b00d9e5aa82e414a1b387351c2.yml
3+
openapi_spec_hash: afeddf18ebc3da1521b3e6f6739411fa
44
config_hash: 80eef1b592110714ea55cd26c470fabb

src/resources/browsers/browsers.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,8 +928,8 @@ export interface BrowserCreateParams {
928928

929929
/**
930930
* Optional human-readable name for the browser session, used to find it later in
931-
* the dashboard. Must be unique among active sessions within the project. Set at
932-
* creation time only.
931+
* the dashboard. Must be unique among active sessions within the project. Can be
932+
* changed later via PATCH /browsers/{id_or_name}.
933933
*/
934934
name?: string;
935935

@@ -961,7 +961,8 @@ export interface BrowserCreateParams {
961961

962962
/**
963963
* Optional user-defined key-value tags for the browser session, used to find and
964-
* group sessions later. Set at creation time only. Up to 50 pairs.
964+
* group sessions later. Can be changed later via PATCH /browsers/{id_or_name}. Up
965+
* to 50 pairs.
965966
*/
966967
tags?: Tags;
967968

@@ -1041,6 +1042,13 @@ export interface BrowserUpdateParams {
10411042
*/
10421043
disable_default_proxy?: boolean;
10431044

1045+
/**
1046+
* Human-readable name for the browser session. Omit to leave unchanged, set to an
1047+
* empty string to clear the name. When set, must be unique among active sessions
1048+
* within the project.
1049+
*/
1050+
name?: string | null;
1051+
10441052
/**
10451053
* Profile to load into the browser session. Only allowed if the session does not
10461054
* already have a profile loaded.
@@ -1053,6 +1061,13 @@ export interface BrowserUpdateParams {
10531061
*/
10541062
proxy_id?: string | null;
10551063

1064+
/**
1065+
* User-defined key-value tags for the browser session. Omit to leave unchanged.
1066+
* Provide a map to replace the entire tag set (full replace, not a merge). Set to
1067+
* an empty object ({}) to clear all tags. Up to 50 pairs.
1068+
*/
1069+
tags?: Tags | null;
1070+
10561071
/**
10571072
* Telemetry configuration. Omit, set to null, or set to an empty object ({}) to
10581073
* leave the existing configuration unchanged. Set enabled to true to enable

0 commit comments

Comments
 (0)