Update Period

This endpoint allows an admin user to update an existing period with a specified ID, name, start date, and end date.

PUT/Period/UpdatePeriod

Authorization

AuthorizationRequiredBearer <token>

Authorization header using the Bearer scheme. Example: "Bearer {token}"

In: header

Query Parameters

PeriodIdstring

The ID of the period to be updated.

Format: "uuid"
Namestring

The new name for the period.

StartDatestring

The new start date for the period.

Format: "date-time"
EndDatestring

The new end date for the period.

Format: "date-time"
curl -X PUT "https://example.com/Period/UpdatePeriod?PeriodId=497f6eca-6276-4993-bfeb-53cbbbba6f08&Name=%3Cstring%3E&StartDate=2019-08-24T14%3A15%3A22Z&EndDate=2019-08-24T14%3A15%3A22Z" \
  -H "Authorization: Bearer <token>"

Returns the updated period if the update is successful.

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "startDate": "2019-08-24T14:15:22Z",
  "endDate": "2019-08-24T14:15:22Z"
}