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

# POST /sessions/{uid}/data

> Upload model data for a session



## OpenAPI

````yaml docs/granta-mi/granta-mi-connected-materials/2026-r1/api/integration_service.yaml POST /sessions/{uid}/data
openapi: 3.0.0
info:
  version: 1.0.0
  title: Granta Integration Service
  description: Integration Service OpenAPI
servers:
  - url: https://integration.service/api/v1/
security:
  - OpenId:
      - is_read
      - is_write
      - is_read_write
paths:
  /sessions/{uid}/data:
    post:
      description: Upload model data for a session
      operationId: sessions-uid-data-post
      parameters:
        - $ref: '#/components/parameters/SessionUid'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Data'
      responses:
        '201':
          description: Successfully uploaded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SequencedData'
        '400':
          description: Bad request data (Malformed UUID or invalid JSON)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '403':
          description: Session is not owned by user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '404':
          description: Required Session object not present
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
components:
  parameters:
    SessionUid:
      description: Universally Unique identifier for a session.
      name: uid
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    Data:
      description: >-
        Holds Session data uploaded by the Granta Material Picker via a Sessions
        data POST request
      type: object
      required:
        - value
      properties:
        value:
          description: >-
            JSON string holding the data. For the Granta Integration Service,
            this is currently JSON object text.
          type: string
    SequencedData:
      description: >-
        Result of a GET sessions data request. This is the session data tagged
        with a sequence id.
      allOf:
        - $ref: '#/components/schemas/Data'
        - type: object
          required:
            - id
          properties:
            id:
              description: >-
                Sequence identity. Message count value used to diffentiate
                messages for a given session.
              type: integer
    HttpError:
      description: >-
        Returned by requests if an error occurs. Holds HTTP status code and
        message
      type: object
      required:
        - error
      properties:
        error:
          description: Fixed field indicating this is an error
          type: object
          required:
            - code
            - message
          properties:
            code:
              description: Text representation of Http status code category
              type: string
            message:
              description: A string describing the specific error that occurred.
              type: string
  securitySchemes:
    OpenId:
      type: openIdConnect
      openIdConnectUrl: https://azeww22wpoidc01.win.ansys.com/

````