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

# Editar matrícula

Altera os dados da 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/{id}": {
      "put": {
        "tags": [
          "Matrículas"
        ],
        "summary": "Editar matrícula",
        "description": "Altera os dados da matrícula.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "example": {
                  "enrollment_date": "2025-05-14",
                  "student_id": 3,
                  "class_id": 2,
                  "expiration_date": "2025-12-31",
                  "user_id": 35849,
                  "is_scholarship_holder": false,
                  "renewal_day": 15,
                  "monday": false,
                  "thuesday": true,
                  "wednesday": false,
                  "thursday": false,
                  "friday": false,
                  "saturday": false,
                  "sunday": false,
                  "comments": "",
                  "cashier_id": 1,
                  "billings": "1,2,3,4,5,6,7,8,9,10,11,12,13",
                  "combo_id": null
                },
                "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 o aluno é bolsista."
                  },
                  "renewal_day": {
                    "type": "integer",
                    "description": "Dia de renovação da matrícula."
                  },
                  "monday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na segunda-feira."
                  },
                  "tuesday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na terça-feira."
                  },
                  "wednesday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na quarta-feira."
                  },
                  "thursday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na quinta-feira."
                  },
                  "friday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula na sexta-feira."
                  },
                  "saturday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula no sábado."
                  },
                  "sunday": {
                    "type": "boolean",
                    "description": "Se o aluno terá aula no domingo."
                  },
                  "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": {
                    "type": "integer",
                    "description": "ID do combo."
                  }
                }
              },
              "examples": {
                "default": {
                  "value": {
                    "enrollment_date": "2025-05-14",
                    "student_id": 3,
                    "class_id": 2,
                    "expiration_date": "2025-12-31",
                    "user_id": 35849,
                    "is_scholarship_holder": false,
                    "renewal_day": 15,
                    "monday": false,
                    "thuesday": true,
                    "wednesday": false,
                    "thursday": false,
                    "friday": false,
                    "saturday": false,
                    "sunday": false,
                    "comments": "",
                    "cashier_id": 1,
                    "billings": "1,2,3,4,5,6,7,8,9,10,11,12,13",
                    "combo_id": null
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "examples": {
                  "OK": {
                    "value": {
                      "message": "Updated successfully"
                    },
                    "summary": "OK"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "api_token"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ]
}
```