---
title: "Update the sensor layout given by its id with the information in the body"
method: PUT
path: "/avx-sensorlabs/v2/sensorlayouts/{id}"
tags: ["SensorLayouts"]
---

# Update the sensor layout given by its id with the information in the body

`PUT /avx-sensorlabs/v2/sensorlayouts/{id}`

## Request

- Base URL: `https://developer.synopsys.com` (the document declares no server; this is the origin it was published from)
- URL: `https://developer.synopsys.com/avx-sensorlabs/v2/sensorlayouts/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/synopsys/apis/sensor-layouts/docs/avx-sensorlabs/v2/sensorlayouts/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

To get the correct json structure, use the ```GET: /sensorlayouts/{id}``` service.

## Path parameters

- `id` string, uuid, required

## Request body

- PreSensorLayoutsV2DataLayoutData
  - `metadata` PreSensorLayoutsV2DataLayoutMetadata: Metadata of the layout.
    - `name` string, nullable: Name of the layout.
    - `manufacturer` string, nullable: Manufacturer.
    - `version` string, nullable: Version.
    - `comment` string, nullable: Comment.
    - `vehicleModel` string, nullable: Vehicle model.
  - `root` PreSensorLayoutsV2DataTreeNode
    - `nodeName` string, nullable
    - `transform` PreSensorLayoutsV2DataTransform
      - `position` PreSensorLayoutsV2DataPosition: Position.
        - `x` number, double: Translation following X direction (m).
        - `y` number, double: Translation following Y direction (m).
        - `z` number, double: Translation following Z direction (m).
      - `rotation` PreSensorLayoutsV2DataRotation: Rotation.
        - `x` number, double: Rotation X value (deg).
        - `y` number, double: Rotation Y value (deg).
        - `z` number, double: Rotation Z value (deg).
    - `sensorInfo` PreSensorLayoutsV2DataSensorInfo
      - `id` string, uuid: Sensor id.
      - `type` PreSensorLayoutsV2DataSensorType
        - `type` string, nullable
      - `name` string, nullable: Sensor name.
    - `children` PreSensorLayoutsV2DataTreeNode[], nullable
  - `missingSensorNames` string[], nullable: List of missing sensor names.

## Response `200`

Success

- LayoutReadIdentifier
  - `id` string, uuid

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/synopsys/apis/sensor-layouts.md) - [All operations](https://skmtc.dev/synopsys/apis/sensor-layouts/llms.txt) - [OpenAPI document](https://skmtc.dev/synopsys/apis/sensor-layouts/revisions/ae3c54d52d67?raw)
