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

# Edit illuxi_availability

> Edit an [illuxi_availability](/concepts/illuxi_availability) by ID



## OpenAPI

````yaml POST /illuxi_availability/edit/{id}
openapi: 3.0.0
info:
  version: 2.0.0
  title: illuxiLMS API
  description: Interact with the illuxiLMS API to manage your learning content and users.
  termsOfService: https://illuxi.com/conditions-utilisation/
  contact:
    name: illuxi Team
    email: info@illuxi.com
    url: https://illuxi.com
servers:
  - url: https://{portalApiUrl}
    description: Production server (uses live data)
    variables:
      portalApiUrl:
        default: your-portal.acme.com/api-v2
        description: Your portal's API URL
security:
  - bearerAuth: []
paths:
  /illuxi_availability/edit/{id}:
    post:
      description: Edit an [illuxi_availability](/concepts/illuxi_availability) by ID
      operationId: editIlluxiAvailability
      parameters:
        - name: id
          in: path
          description: ID of illuxi_availability to edit
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IlluxiAvailability'
            example:
              illuxi_availability_status: inactive
      responses:
        '200':
          description: updated illuxi_availability
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                  result:
                    $ref: '#/components/schemas/IlluxiAvailability'
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    IlluxiAvailability:
      type: object
      properties:
        illuxi_availability_id:
          type: integer
          description: Unique identifier of the illuxi availability
          readOnly: true
        illuxi_availability_target_type:
          type: string
          description: >-
            Type of entity this availability applies to (e.g.
            availability_group)
        illuxi_availability_target_id:
          type: integer
          description: ID of the target entity
        illuxi_availability_status:
          type: string
          description: Status of the availability record
          enum:
            - active
            - inactive
        illuxi_availability_created_date:
          type: string
          format: date-time
          readOnly: true
          description: Date the record was created
        illuxi_availability_updated_date:
          type: string
          format: date-time
          readOnly: true
          description: Date the record was last updated
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Authentication token obtained from POST /token

````