diff --git a/api/v1/openapi.yaml b/api/v1/openapi.yaml index 485b195..90acc09 100644 --- a/api/v1/openapi.yaml +++ b/api/v1/openapi.yaml @@ -293,6 +293,61 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + put: + summary: Update a date of a training + operationId: updateTrainingDate + tags: + - training dates + parameters: + - name: trainingID + in: path + required: true + schema: + type: string + format: uuid + x-go-type: training.ID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training + - name: dateID + in: path + required: true + schema: + type: string + format: uuid + x-go-type: training.DateID + x-go-type-import: + path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/NewTrainingDate" + responses: + "200": + description: Date updated + content: + application/json: + schema: + $ref: "#/components/schemas/TrainingDate" + "404": + description: Date not found + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + "400": + description: Invalid input + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + default: + description: Unexpected error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" /trainings/{trainingID}/dates/{dateID}/attendees: get: