---
updatedAt: 2025-08-28T17:16:40.000Z
agentTools:
  projectIndex: https://api-taskinset.readme.io/llms.txt
---

# Cadastrar matrícula

Cadastra uma nova matrícula.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "API 2"
  },
  "servers": [
    {
      "url": "https://api2.webdanca.com/v1"
    }
  ],
  "paths": {
    "/enrollments": {
      "post": {
        "tags": [
          "Matrículas"
        ],
        "summary": "Cadastrar matrícula",
        "description": "Cadastra uma nova matrícula.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enrollment_date": {
                    "type": "string",
                    "format": "date",
                    "description": "Data da matrícula"
                  },
                  "student_id": {
                    "type": "integer",
                    "description": "Id do aluno"
                  },
                  "class_id": {
                    "type": "integer",
                    "description": "Id da turma"
                  },
                  "expiration_date": {
                    "type": "string",
                    "format": "date",
                    "description": "Data de vencimento da matrícula"
                  },
                  "user_id": {
                    "type": "integer",
                    "description": "Id do usuário responsável pela matrícula"
                  },
                  "is_scholarship_holder": {
                    "type": "boolean",
                    "description": "Se aluno é bolsista",
                    "default": "false"
                  },
                  "renewal_day": {
                    "type": "integer",
                    "description": "Dia de renovação da matrícula"
                  },
                  "monday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na segunda-feira.",
                    "default": "false"
                  },
                  "tuesday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na terça-feira.",
                    "default": "false"
                  },
                  "wednesday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na quarta-feira.",
                    "default": "false"
                  },
                  "thursday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na quinta-feira.",
                    "default": "false"
                  },
                  "friday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na sexta-feira.",
                    "default": "false"
                  },
                  "saturday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula no sabado.",
                    "default": "false"
                  },
                  "sunday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula no domingo.",
                    "default": "false"
                  },
                  "comments": {
                    "type": "string",
                    "description": "Comentários."
                  },
                  "cashier_id": {
                    "type": "integer",
                    "description": "ID do caixa."
                  },
                  "billings": {
                    "type": "string",
                    "description": "IDs dos lançamentos financeiros que devem ser exibidos no contrato.<br>**Deve ser separados por vírgula.**"
                  },
                  "combo_id": {
                    "nullable": true,
                    "type": "integer",
                    "description": "ID do combo."
                  }
                },
                "required": [
                  "enrollment_date",
                  "student_id",
                  "class_id",
                  "expiration_date"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "examples": {
                  "OK": {
                    "value": {
                      "id": 116,
                      "message": "Saved successfully"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "api_token"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ]
}
```