Localisation
Create messages for different locale.
RequestInfo should be used to carry meta information about the requests to the server as described in the fields below. All eGov APIs will use requestinfo as a part of the request body to carry this meta information. Some of this information will be returned back from the server as part of the ResponseInfo in the response body to ensure correlation.
Unique tenant id.
MessagesResponse as object
Invalid message request input
POST /messages/v1/_create HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 247
{
"RequestInfo": [
{
"apiId": "text",
"ver": "text",
"ts": 1,
"action": "text",
"did": "text",
"key": "text",
"msgId": "text",
"requesterId": "text",
"authToken": "text"
}
],
"messages": [
{
"code": "text",
"message": "text",
"module": "text",
"locale": "text"
}
],
"tenantId": "text"
}
{}
update messages for different locale.
RequestInfo should be used to carry meta information about the requests to the server as described in the fields below. All eGov APIs will use requestinfo as a part of the request body to carry this meta information. Some of this information will be returned back from the server as part of the ResponseInfo in the response body to ensure correlation.
Locale of message.
Tenant of message.
Module of message..
MessagesResponse as object
Invalid message request input
POST /messages/v1/_update HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 247
{
"RequestInfo": [
{
"apiId": "text",
"ver": "text",
"ts": 1,
"action": "text",
"did": "text",
"key": "text",
"msgId": "text",
"requesterId": "text",
"authToken": "text"
}
],
"locale": "text",
"tenantId": "text",
"module": "text",
"messages": [
{
"code": "text",
"message": "text"
}
]
}
{
"messages": [
{
"code": "text",
"message": "text",
"module": "text",
"locale": "text"
}
],
"responseInfo": {}
}
delete messages
RequestInfo should be used to carry meta information about the requests to the server as described in the fields below. All eGov APIs will use requestinfo as a part of the request body to carry this meta information. Some of this information will be returned back from the server as part of the ResponseInfo in the response body to ensure correlation.
tenant id of message.
MessagesResponse as object
Invalid delete message request
POST /messages/v1/_delete HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 247
{
"RequestInfo": [
{
"apiId": "text",
"ver": "text",
"ts": 1,
"action": "text",
"did": "text",
"key": "text",
"msgId": "text",
"requesterId": "text",
"authToken": "text"
}
],
"tenantId": "text",
"messages": [
{
"code": "text",
"message": "text",
"module": "text",
"locale": "text"
}
]
}
{
"successful": true,
"responseInfo": {}
}
Returns all the messages by locale and tenantId.
Unique id for ulb.
locale for message.
Module name for message
An array of Messages
tenantId and locale is not present
POST /messages/v1/_search?tenantId=text&locale=text&module=text HTTP/1.1
Host:
Accept: */*
[
{
"messages": [
{
"code": "text",
"message": "text",
"module": "text",
"locale": "text"
}
],
"responseInfo": {}
}
]
Last updated
Was this helpful?