> ## 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.

# Upload a packed sensor layout and add it to the library.

> Conflicts might appear if a sensor layout with the same name already exists in the library or if sensors with the same name already exist in the library.



## OpenAPI

````yaml docs/avxcelerate/sensor-layouts-rest-api/SensorLayout_v3_261.json POST /avx-sensorlabs/v3/sensorlayouts/packed
openapi: 3.0.4
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: v3
servers: []
security: []
paths:
  /avx-sensorlabs/v3/sensorlayouts/packed:
    post:
      tags:
        - SensorLayouts
      summary: Upload a packed sensor layout and add it to the library.
      description: >-
        Conflicts might appear if a sensor layout with the same name already
        exists in the library or if sensors with the same name already exist in
        the library.
      requestBody:
        content:
          multipart/form-data:
            schema:
              required:
                - file
              type: object
              properties:
                file:
                  type: string
                  description: File to upload.
                  format: binary
                sensorLayoutName:
                  type: string
                  description: New name for the layout, in case of layout name conflict.
                overwrite:
                  type: boolean
                  description: >-
                    Flag to indicate if existing sensor layout should be
                    overwritten, in case of conflict.
                sensorUpdatesJson:
                  type: array
                  items:
                    type: string
                  description: "Json structure with a list of actions for each conflicting sensor that is referenced in the layout.\r\nContains: current sensor name, new name, should replace sensor, should use existing sensor, is the sensor a thermal camera.\r\n\r\nReplace one sensor : {\"sensorUpdatesJson\":{\"name\":\"Camera\",\"replaceName\":\"\",\"replace\":true, \"useExisting\": false}}\r\nRename one sensor : {\"sensorUpdatesJson\":{\"name\":\"Camera\",\"replaceName\":\"NewCamera\",\"replace\":false, \"useExisting\": false}}"
            encoding:
              file:
                style: form
              sensorLayoutName:
                style: form
              overwrite:
                style: form
              sensorUpdatesJson:
                style: form
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LayoutRead.UploadResult'
components:
  schemas:
    LayoutRead.UploadResult:
      type: object
      properties:
        layoutId:
          type: string
          format: uuid
        hadOldThermalCamera:
          type: boolean
      additionalProperties: false

````