Updates an app integration analytics

Updates an app integration analytics by the given id.

put
Path parameters
idstringRequired

The app integration analytics id.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Body

Provides a data transfer object for the Analytics integration which is used for command requests.

appIntegrationIdstring · min: 1Required

This is used to associate this configuration with a specific integration instance.

trackingIdstring · min: 1Required

This ID is used to track and associate events/data with a specific analytics property or project.

apiKeystring · min: 1Required

This is usually embedded in the frontend to initialize and send data to the analytics platform.

apiSecretstring | nullableOptional

Gets or sets the API secret or verification URL used to authorize or validate requests from the Jframework.

metadatastring | nullableOptional

This can include environment-specific data, custom flags, or platform-specific information.

accountConfigNotesstring | nullableOptional

Gets or sets any additional notes or identifiers related to the account or setup that manages this Analytics configuration.

isDefaultbooleanOptional

Flag to indicate if the analytics integration is the default. By default, it is false.

statusstring · enumOptionalPossible values:
Responses
200

The request was successful.

application/json
put
PUT /api/v1/app-integrations/analytics/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 289

{
  "appIntegrationId": "sApKpllz4sAplsmzha",
  "trackingId": "UA-98765432-1",
  "apiKey": "AIzaSyD-EXAMPLE-KEY-1234567890",
  "apiSecret": "s3cr3tV@lu3",
  "metadata": "{\"env\":\"production\",\"platform\":\"web\"}",
  "accountConfigNotes": "Google Analytics for main website",
  "isDefault": true,
  "status": "Active"
}
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "appIntegration": {
      "type": "PaymentGateway",
      "name": "Stripe",
      "domain": "https://stripe.com",
      "description": "Stripe payment gateway",
      "logoURL": null,
      "status": "Active",
      "id": "sApKpllz4sAplsmzha"
    },
    "trackingId": "G-XXXXXXX",
    "apiKey": "AIzaS*************",
    "apiSecret": "SECRET_KEY",
    "metadata": "Environment=Production;Region=US",
    "accountConfigNotes": "Google Analytics 4 setup for main website",
    "isDefault": false,
    "status": "Inactive",
    "id": "sApKpllz4sAplsmzha",
    "createdDate": "2025-07-15T14:34:48.0587695+07:00"
  },
  "errors": []
}

Last updated

Was this helpful?