Skip to main content
Skip table of contents

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

CODE
PUT <service_url>/rest/formatSettings

Request Body

The request body must be a JSON object with the following structure:

JSON
{
  "dateFormat": String, // The format used for displaying dates
  "dateTimeFormat": String // The format used for displaying date and time
}

Example Request Body

JSON
{
  "dateFormat": "dd/MM/yyyy",
  "dateTimeFormat": "dd/MM/yyyy HH:mm:ss"
}

Example Requests

CODE
PUT https://tis.obss.io/rest/formatSettings

Response

Response Structure

CODE
{
  "dateFormat": String, // The format used for displaying dates
  "dateTimeFormat": String // The format used for displaying date and time
}

Example Response Body

JSON
{
  "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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.