Skip to content

Modify Web Details

The Modify Web Details API updates the Web FCM Project URL and Web FCM Service Account key.

URL

The HTTP URL for Modify Web Details API is:

http://<host>:<port>/api/v1/applications/<appId>/fcmhttpv1

This service implements Gateway Filter for Authentication to authenticate access of the service by a user.

Note: : While creating an app, a unique ID is assigned to an application. Provide the unique identifier for the app in REST URL.

Method

POST

The payload's request header includes Content-Type as application/json.

Input Parameters

The following fields are input parameters:

Input Parameter Required Type Description
webFcmProjectURL Yes URL Firebase Cloud Messaging service sends data from a server to a web application.
webFcmServiceAccountKey Yes file(json) Firebase Cloud Messaging service sends data from a server to a web application.

Sample Request

form-data

"webFcmProjectURL": "xxxxxxxxxxxxxxx",
"webFcmServiceAccountKey": "Web_FCM_Service_Accountkey.json",

Output Parameters

The following fields are output parameters:

Output Parameter Type Description
id long Unique app ID assigned to an app
message string Response status message

Sample Response

{
"id" : "300960548252167",
"message" : "Details updated successfully"
}

Response Status

Code Description
Status 200 Details updated successfully
Status 400 Invalid appID provided or no application found with provided appID
Status 401 Unauthorized request
Status 500 Server failure to process request