> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

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

> To get the correct json structure, use the <code>GET: /sensors/{id}</code><code>GET: /sensorlayouts/{id}</code> service.



## OpenAPI

````yaml docs/avxcelerate/sensor-layouts-rest-api/2025-r1/SensorLayouts_v1-251.json PUT /avx-sensorlabs/v1/sensorlayouts/{id}
openapi: 3.0.1
info:
  title: Sensor Layouts
  description: >-
    The Sensor Layouts REST API allows you to manage your Sensor Layouts
    Library, create new sensor layouts or update existing ones, and download
    sensor layouts as files.
  version: v1
servers: []
security: []
paths:
  /avx-sensorlabs/v1/sensorlayouts/{id}:
    put:
      tags:
        - SensorLayouts
      summary: >-
        Update the sensor layout given by its id with the information in the
        body
      description: >-
        To get the correct json structure, use the <code>GET:
        /sensors/{id}</code><code>GET: /sensorlayouts/{id}</code> service.
      parameters:
        - name: id
          in: path
          description: Unique identifier of the sensor layout in the library.
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: "<br>Json containing all properties of the sensor layout\r\n<br>Example to add a Camera to the layout is as follows,\r\n<br>{\"metadata\":{\"name\":\"SensorLayout\",\"vehicleModel\":\"\",\"manufacturer\":\"\",\"version\":\"\",\"comment\":\"\"},\"root\":{\"nodeName\":\"SensorReferential\",\"sensorInfo\":null,\"transform\":{\"position\":{\"x\":0,\"y\":0,\"z\":0},\"rotation\":{\"x\":0,\"y\":0,\"z\":0}},\"children\":[{\"nodeName\":\"Camera\",\"sensorInfo\":{\"type\":{\"type\":\"Camera\"},\"id\":{\"id\":\"8798a6ac-fff9-4a1a-858e-846b696bdc9d\"},\"name\":\"Camera\"},\"transform\":{\"position\":{\"x\":0,\"y\":0,\"z\":0},\"rotation\":{\"x\":0,\"y\":0,\"z\":0}},\"children\":[]}]}}\r\n<br>Example to add a Camera and Fisheye Camera is as follows,\r\n<br>{\"metadata\":{\"name\":\"SensorLayout\",\"vehicleModel\":\"\",\"manufacturer\":\"\",\"version\":\"\",\"comment\":\"\"},\"root\":{\"nodeName\":\"SensorReferential\",\"sensorInfo\":null,\"transform\":{\"position\":{\"x\":0,\"y\":0,\"z\":0},\"rotation\":{\"x\":0,\"y\":0,\"z\":0}},\"children\":[{\"nodeName\":\"Camera\",\"sensorInfo\":{\"type\":{\"type\":\"Camera\"},\"id\":{\"id\":\"8798a6ac-fff9-4a1a-858e-846b696bdc9d\"},\"name\":\"Camera\"},\"transform\":{\"position\":{\"x\":0,\"y\":0,\"z\":0},\"rotation\":{\"x\":0,\"y\":0,\"z\":0}},\"children\":[]},{\"nodeName\":\"Fisheye Camera\",\"sensorInfo\":{\"type\":{\"type\":\"FishEyeCamera\"},\"id\":{\"id\":\"06cff0e5-4d21-4b65-86a8-52a28b6048a6\"},\"name\":\"Fisheye Camera\"},\"transform\":{\"position\":{\"x\":0,\"y\":0,\"z\":0},\"rotation\":{\"x\":0,\"y\":0,\"z\":0}},\"children\":[]}]}}"
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LayoutEdit.Layout.LayoutData'
          text/json:
            schema:
              $ref: '#/components/schemas/LayoutEdit.Layout.LayoutData'
          application/*+json:
            schema:
              $ref: '#/components/schemas/LayoutEdit.Layout.LayoutData'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LayoutEdit.Identifier'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response.ProblemDetails'
components:
  schemas:
    LayoutEdit.Layout.LayoutData:
      type: object
      properties:
        metadata:
          $ref: '#/components/schemas/LayoutEdit.Layout.Metadata'
        root:
          $ref: '#/components/schemas/LayoutEdit.Layout.TreeNode'
        missingSensorNames:
          type: array
          items:
            type: string
          description: List of missing sensor names.
          nullable: true
      additionalProperties: false
      description: Layout data.
    LayoutEdit.Identifier:
      type: object
      properties:
        id:
          type: string
          format: uuid
      additionalProperties: false
      description: Identifier as Guid.
    Response.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    LayoutEdit.Layout.Metadata:
      type: object
      properties:
        name:
          type: string
          description: Name of the layout.
          nullable: true
        manufacturer:
          type: string
          description: Manufacturer.
          nullable: true
        version:
          type: string
          description: Version.
          nullable: true
        comment:
          type: string
          description: Comment.
          nullable: true
        vehicleModel:
          type: string
          description: Vehicle model.
          nullable: true
      additionalProperties: false
      description: Metadata of the layout.
    LayoutEdit.Layout.TreeNode:
      type: object
      properties:
        nodeName:
          type: string
          nullable: true
        transform:
          $ref: '#/components/schemas/LayoutEdit.Layout.Transform'
        sensorInfo:
          $ref: '#/components/schemas/LayoutEdit.Sensor.SensorInfo'
        children:
          type: array
          items:
            $ref: '#/components/schemas/LayoutEdit.Layout.TreeNode'
          nullable: true
      additionalProperties: false
      description: Represents Tree node.
    LayoutEdit.Layout.Transform:
      type: object
      properties:
        position:
          $ref: '#/components/schemas/LayoutEdit.Layout.Position'
        rotation:
          $ref: '#/components/schemas/LayoutEdit.Layout.Rotation'
      additionalProperties: false
      description: Transform.
    LayoutEdit.Sensor.SensorInfo:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/LayoutEdit.Identifier'
        type:
          $ref: '#/components/schemas/LayoutEdit.Sensor.SensorType'
        name:
          type: string
          description: Sensor name.
          nullable: true
      additionalProperties: false
      description: Sensor information.
    LayoutEdit.Layout.Position:
      type: object
      properties:
        x:
          type: number
          description: Translation following X direction (m).
          format: double
        'y':
          type: number
          description: Translation following Y direction (m).
          format: double
        z:
          type: number
          description: Translation following Z direction (m).
          format: double
      additionalProperties: false
      description: Position.
    LayoutEdit.Layout.Rotation:
      type: object
      properties:
        x:
          type: number
          description: Rotation X value (deg).
          format: double
        'y':
          type: number
          description: Rotation Y value (deg).
          format: double
        z:
          type: number
          description: Rotation Z value (deg).
          format: double
      additionalProperties: false
      description: Rotation.
    LayoutEdit.Sensor.SensorType:
      type: object
      properties:
        type:
          type: string
          nullable: true
      additionalProperties: false
      description: Sensor type.

````