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

# Create a new material for the current organization

> Create a new material for the current organization.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json post /materials
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /materials:
    post:
      tags:
        - Materials
      summary: Create a new material for the current organization
      description: Create a new material for the current organization.
      operationId: create_material_materials_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMaterial'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Material'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateMaterial:
      properties:
        name:
          type: string
          title: Name
          description: Name of the material
        definition:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Definition
          description: Material definition (formula, type, constituents)
        manufacturer:
          anyOf:
            - type: string
            - type: 'null'
          title: Manufacturer
          description: Manufacturer of the material
        product_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Id
          description: Supplier product ID
      type: object
      required:
        - name
      title: CreateMaterial
      description: Model for creating a new material.
    Material:
      properties:
        name:
          type: string
          title: Name
          description: Name of the material
        definition:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Definition
          description: Material definition (formula, type, constituents)
        manufacturer:
          anyOf:
            - type: string
            - type: 'null'
          title: Manufacturer
          description: Manufacturer of the material
        product_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Id
          description: Supplier product ID
        id:
          type: string
          title: Id
          description: Unique identifier for the material
        organization_id:
          type: string
          title: Organization Id
          description: Organization ID of the material
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: >-
            Project the material is scoped to, derived from the cell
            specification(s) that reference it. Null when the material is shared
            across multiple projects or is org-global.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the material was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Timestamp when the material was last updated
        property_count:
          type: integer
          title: Property Count
          description: Number of property datasets attached to this material
          default: 0
      type: object
      required:
        - name
        - id
        - organization_id
        - created_at
        - updated_at
      title: Material
      description: Model representing a material as returned by the API.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````