File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3455,6 +3455,57 @@ await client.deviceSpaces.delete('789e0123-e89b-12d3-a456-426614174002');
34553455
34563456</details>
34573457
3458+ <details>
3459+ <summary><strong>bulkUpdatePosition</strong></summary>
3460+
3461+ Updates the position of multiple device spaces in a single bulk operation.
3462+
3463+ **Signature:**
3464+
3465+ ` ` ` typescript
3466+ bulkUpdatePosition (params : DeviceSpacesBulkUpdatePositionParams [], options ? : Core .RequestOptions ): Core .APIPromise <void >
3467+ ` ` `
3468+
3469+ **Parameters:**
3470+
3471+ - ` params ` _(DeviceSpacesBulkUpdatePositionParams[])_: Array of device space position update parameters.
3472+ - ` id ` _(string)_: The unique identifier of the device space.
3473+ - ` position ` _(object)_: The new position of the device space.
3474+ - ` x ` _(number)_: The X coordinate.
3475+ - ` y ` _(number)_: The Y coordinate.
3476+ - ` z ` _(number)_: The Z coordinate.
3477+ - ` options ` _(Core.RequestOptions)_: Additional request options.
3478+
3479+ **Returns:**
3480+
3481+ - ` Core .APIPromise <void >` : A promise that resolves when the bulk update is complete.
3482+
3483+ **Example Usage:**
3484+
3485+ ` ` ` typescript
3486+ // Update positions for multiple device spaces
3487+ await client .deviceSpaces .bulkUpdatePosition ([
3488+ {
3489+ id: ' 3fa85f64-5717-4562-b3fc-2c963f66afa6' ,
3490+ position: {
3491+ x: 10.5 ,
3492+ y: 20.0 ,
3493+ z: 0.0 ,
3494+ },
3495+ },
3496+ {
3497+ id: ' 789e0123-e89b-12d3-a456-426614174002' ,
3498+ position: {
3499+ x: -5.0 ,
3500+ y: 12.3 ,
3501+ z: 1.5 ,
3502+ },
3503+ },
3504+ ]);
3505+ ` ` `
3506+
3507+ </details>
3508+
34583509---
34593510
34603511# Trip
Original file line number Diff line number Diff line change @@ -42,6 +42,22 @@ export class DeviceSpaces extends APIResource {
4242 ...options ,
4343 } ) ;
4444 }
45+
46+ bulkUpdatePosition ( params : DeviceSpacesBulkUpdatePositionParams [ ] , options ?: Core . RequestOptions ) : Core . APIPromise < void > {
47+ return this . _client . put ( `/device-spaces/bulk-update` , {
48+ body : params ,
49+ ...options ,
50+ } ) ;
51+ }
52+ }
53+
54+ export interface DeviceSpacesBulkUpdatePositionParams {
55+ id : string ;
56+ position : {
57+ x : number ;
58+ y : number ;
59+ z : number ;
60+ } ;
4561}
4662
4763export interface DeviceSpacesParams {
You can’t perform that action at this time.
0 commit comments