Event Metric Mapping
Get all event metric mappings for a specific entity.
The ID of the entity.
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/eventMetricMapping HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true,
"data": [
{
"entityId": "exampleEntityId",
"eventName": "exampleEventName",
"properties": [
{
"value": "exampleValue"
}
],
"metrics": [
"exampleMetric"
],
"platform": "examplePlatform",
"isDeleted": false
}
]
}
Create a new event metric mapping for an entity.
The ID of the entity.
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/eventMetricMapping HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"eventName": "text",
"properties": [
{
"value": "text"
}
],
"platform": "text"
}
{
"success": true,
"message": "New Event metric mapping created successfully."
}
Retrieve event metric mapping details based on entity ID and event name.
The ID of the entity.
exampleEntityId
The name of the event.
exampleEventName
GET /api/entities/{entityId}/eventMetricMapping/eventName/{eventName} HTTP/1.1
Host: api.questprotocol.xyz
Accept: */*
{
"entityId": "exampleEntityId",
"eventName": "exampleEventName",
"properties": [
{
"value": "exampleValue"
}
],
"metrics": [
"exampleMetric"
],
"platform": "examplePlatform",
"isDeleted": false
}
Update event metric mapping details based on entity ID and event name.
The ID of the entity.
exampleEntityId
The name of the event.
exampleEventName
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/eventMetricMapping/eventName/{eventName}/update HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"properties": [
{
"value": "exampleValue"
}
],
"platform": "examplePlatform"
}
{
"entityId": "exampleEntityId",
"eventName": "exampleEventName",
"properties": [
{
"value": "exampleValue"
}
],
"metrics": [
"exampleMetric"
],
"platform": "examplePlatform",
"isDeleted": false
}
Delete event metric mapping based on entity ID and event name.
The ID of the entity.
exampleEntityId
The name of the event.
exampleEventName
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/eventMetricMapping/eventName/{eventName}/delete HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true
}
Remove specified metrics from an event metric mapping based on entity ID and event name.
The ID of the entity.
exampleEntityId
The name of the event.
exampleEventName
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/eventMetricMapping/eventName/{eventName}/remove-metrics HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"metric": "exampleMetric"
}
{
"success": true
}
Create multiple event metric mappings.
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
POST /api/create-many/eventMetricMapping HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 338
{
"data": [
{
"entityId": "exampleEntityId1",
"eventName": "exampleEventName1",
"properties": [
{
"value": "exampleValue1"
}
],
"metrics": [
"exampleMetric1"
],
"platform": "examplePlatform1"
},
{
"entityId": "exampleEntityId2",
"eventName": "exampleEventName2",
"properties": [
{
"value": "exampleValue2"
}
],
"metrics": [
"exampleMetric2"
],
"platform": "examplePlatform2"
}
]
}
{
"success": true,
"data": [
{
"entityId": "exampleEntityId1",
"eventName": "exampleEventName1",
"properties": [
{
"value": "exampleValue1"
}
],
"metrics": [
"exampleMetric1"
],
"platform": "examplePlatform1"
},
{
"entityId": "exampleEntityId2",
"eventName": "exampleEventName2",
"properties": [
{
"value": "exampleValue2"
}
],
"metrics": [
"exampleMetric2"
],
"platform": "examplePlatform2"
}
]
}
Last updated