UI Settings Services
All services related to UI settings are listed in this page.
GET
List UI Settings
GET
List UI SettingsThis service is used to list all UI settings with detailed information.
Path: /api/v1/ui_settings/
Query Parameters
This is a read-only service, and no query parameters are required.
Example Request
To get a list of all UI settings, a GET
request should be sent to the /api/v1/ui_settings/
endpoint.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK, the API returns all the UI settings. The response body contains a JSON
object with the attributes such as ID, key, value, label, data type etc.
These attributes are described in the following table.
id
integer
The ID of the UI setting
key
string
The key info of the UI setting
value
string
The value info of the UI setting
label
string
The label info of the UI setting
tag
string
The tag info of the UI setting
data_type
string
The data type info of the UI setting
is_active
boolean
The status info of the UI settings
created_date
date
The creation date
modified_date
date
The last modified date
translations
dict
The translations of UI setting
additional_info
dict
The extra information for UI setting
This example response serves as a reference to understand the structure and data format returned from this API service.
GET
Retrieve Single UI Setting Detail
GET
Retrieve Single UI Setting DetailThis service is used to retrieve information about a single UI setting with a specific ID.
Path: /api/v1/ui_settings/{id}/
Query Parameters
This is a read-only service, and no query parameters are required.
Example Request
To retrieve detailed information about specific UI setting, a GET
request should be sent to the /api/v1/ui_settings/{id}/
endpoint.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK, the API returns the detailed information about specific UI setting. The response body contains a JSON
object with the attributes such as ID, key, value, label, data type etc.
These attributes are described in the following table.
id
integer
The ID of the UI setting
key
string
The key info of the UI setting
value
string
The value info of the UI setting
label
string
The label info of the UI setting
tag
string
The tag info of the UI setting
data_type
string
The data type info of the UI setting
is_active
boolean
The status info of the UI settings
created_date
date
The creation date
modified_date
date
The last modified date
translations
dict
The translations of UI setting
additional_info
dict
The extra information for UI setting
This example response serves as a reference to understand the structure and data format returned from this API service.
POST
Create UI Setting
POST
Create UI SettingThis service is used to create a new UI setting with the request body.
Path: /api/v1/ui_settings/
Request Body
The following request body parameters can be used to create an UI setting object.
token
string
header
The API key of the customer account
data_type
string
body
The data type info of the UI setting
key
string
body
The key info of the UI setting
label
string
body
The label info of the UI setting
tag
string
body
The tag info of the UI setting
is_active
boolean
body
The status info of the UI settings
value
string
body
The value info of the UI setting
Example Request
To create a new UI setting, a POST
request should be sent to the /api/v1/ui_settings/
endpoint.
Here's an example of how to make the request in python:
Example Response (201 Created)
In a successful response with a status code of 201 Created, the API indicates that a new UI setting has been successfully created. The response includes the appropriate content-type specified in the response headers, typically application/json. The response body contains a JSON object representing the newly created UI setting, including its unique ID and any additional information provided during the creation process.
id
integer
The ID of the UI setting
key
string
The key info of the UI setting
value
string
The value info of the UI setting
label
string
The label info of the UI setting
tag
string
The tag info of the UI setting
data_type
string
The data type info of the UI setting
is_active
boolean
The status info of the UI settings
created_date
date
The creation date
modified_date
date
The last modified date
translations
dict
The translations of UI setting
additional_info
dict
The extra information for UI setting
This example response serves as a reference to understand the structure and data format returned when a new UI setting is created successfully.
Example Response (400 Bad Request)
In an unsuccessful response with a status code of 400 Bad Request, the API indicates that the request could not be processed due to client error. The response body contains a JSON object that provides additional information about the error, including an error message or validation errors.
This example response serves as a reference to understand the structure and data format returned when a request fails due to client error.
PUT
Update UI Setting
PUT
Update UI SettingThis service is used to update an UI setting with the request body.
Path: /api/v1/ui_settings/{id}/
Request Body
The following request body parameters can be used to update an UI setting object. It is necessary to include all the fields, even if some of them will not be updated, in the request body.
token
string
header
The API key of the customer account
data_type
string
body
new data type info of the UI setting
key
string
body
new key info of the UI setting
label
string
body
new label info of the UI setting
tag
string
body
new tag info of the UI setting
is_active
boolean
body
new status info of the UI settings
value
string
body
new value info of the UI setting
Example Request
To update an UI settings, a PUT
request should be sent to the /api/v1/ui_settings/{id}/
endpoint.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK, the API indicates that an UI setting has been successfully updated. The response body contains a JSON object representing the updated UI setting, including its unique ID and any additional information provided during the update process.
id
integer
The ID of the UI setting
key
string
updated key info of the UI setting
value
string
updated value info of the UI setting
label
string
updated label info of the UI setting
tag
string
updated tag info of the UI setting
data_type
string
updated data type info of the UI setting
is_active
boolean
updated status info of the UI settings
created_date
date
updated creation date
modified_date
date
updated last modified date
translations
dict
updated translations of UI setting
additional_info
dict
updated extra information for UI setting
This example response serves as a reference to understand the structure and data format returned when an UI setting is updated successfully.
PATCH
Partial Update UI Setting
PATCH
Partial Update UI SettingThis service is used to update an UI setting partially with the request body.
Path: /api/v1/ui_settings/{id}/
Request Body
The following request body parameters can be used to update an UI setting object. Only the field will be updated should be sent in the request body.
As an example, the key
field has been updated in the rest of the document.
token
string
header
The API key of the customer account
key
string
body
new key info of the UI setting
Example Request
To update the key
field of UI setting, a PATCH
request should be sent to the /api/v1/ui_settings/{id}/
endpoint.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK, the API indicates that an the key
field has been successfully updated. The response body contains a JSON object representing the updated UI setting, including its unique ID and any additional information provided during the update process.
id
integer
The ID of the UI setting
key
string
updated key info of the UI setting
value
string
updated value info of the UI setting
label
string
updated label info of the UI setting
tag
string
updated tag info of the UI setting
data_type
string
updated data type info of the UI setting
is_active
boolean
updated status info of the UI settings
created_date
date
updated creation date
modified_date
date
updated last modified date
translations
dict
updated translations of UI setting
additional_info
dict
updated extra information for UI setting
This example response serves as a reference to understand the structure and data format returned when the UI setting is updated successfully.
DELETE
Delete UI Setting
DELETE
Delete UI SettingThis service is used to delete an UI setting with a specific ID.
Path: /api/v1/ui_settings/{id}/
Request Body
The following request body parameters can be used to delete an UI setting object.
token
string
header
The API key of the customer account
Example Request
To delete an UI settings, a DELETE
request should be sent to the /api/v1/ui_settings/{id}/
endpoint.
Here's an example of how to make the request in python:
Example Response (204 No Content)
In a successful response with a status code of 204 No Content, the API returns no content. Response body does not contain any text or object.
Last updated
Was this helpful?