Skip to content
Snippets Groups Projects
Verified Commit bfd128b2 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: add example schedule PUT request

parent e3aab096
No related branches found
No related tags found
No related merge requests found
Pipeline #8527 passed
......@@ -1002,6 +1002,20 @@ class APIRRuleViewSet(viewsets.ModelViewSet):
summary="Retrieve a single schedule.",
),
update=extend_schema(
examples=[
OpenApiExample(
"Request to update an existing schedule",
request_only=True,
value={
"schedule": {
"rruleId": 2,
"endTime": "09:00:00",
"firstDate": "2024-08-02",
"startTime": "10:00:00",
}
},
)
],
summary="Update an existing schedule.",
request=ScheduleCreateUpdateRequestSerializer,
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment