Timepiece - Time in Status for Jira Cloud
Breadcrumbs

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:

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

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

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.