Update Format Settings
Overview
PUT /rest/formatSettings
This endpoint is used to update current format settings.
Required Permissions
Admin can update current format settings.
Request
PUT <service_url>/rest/formatSettings
Request Body
The request body must be a JSON object with the following structure:
{
"dateFormat": String, // The format used for displaying dates
"dateTimeFormat": String // The format used for displaying date and time
}
Example Request Body
{
"dateFormat": "dd/MM/yyyy",
"dateTimeFormat": "dd/MM/yyyy HH:mm:ss"
}
Example Requests
PUT https://tis.obss.io/rest/formatSettings
Response
Response Structure
{
"dateFormat": String, // The format used for displaying dates
"dateTimeFormat": String // The format used for displaying date and time
}
Example Response Body
{
"dateFormat": "dd/MM/yyyy",
"dateTimeFormat": "dd/MM/yyyy HH:mm:ss"
}
Response Codes
200 OK: Indicates that the format settings are updated successfully.
400 Bad Request: If the request body is invalid.