Game API

User Activity Log

Estimated reading: 3 minutes

POST: api/v{version}/User/metric 

Version: 1

Request Body:

				
					{
  "metricId": 0,
  "articleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "questionId": 0,
  "parameters": [
    {
      "additionalProp1": "string",
      "additionalProp2": "string",
      "additionalProp3": "string"
    }
  ],
  "firmId": "string",
  "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "eventCreatedDate": "2023-07-26T19:36:43.092Z",
  "customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "isRollback": true,
  "transactionId": "string"
}
				
			

Responses:

				
					200 SUCCESS
{
  "success": true,
  "hasQuestion": true,
  "questionId": 0
}
				
			
				
					400 BAD REQUEST
{
  "message": "string",
  "exceptionType": 1,
  "version": "string"
}
				
			

An example activity log pattern is as follows:

				
					{
    "metricId: {AKTIVITE ID},
    "parameters": [
        {
            "{PROPERTY ID}": "{GERCEKLESEN}",
            "{2.PROPERTY ID}": "{2.GERCEKLESEN}"
        }
       ]
       "firmId": "{KULLANICI ID}"
}
				
			
  • The areas mentioned in curly brackets here are:
    – Activity ID: You can change this part by using the Activity ID corresponding to the activity.
    – Property ID: It is changed with the “property” of the data that may occur depending on that activity.
    – Actual: The data information that took place in the relevant “property” of the activity to be sent is given here.
    – There is no need to give string values such as TL and PCS next to them.
    – Numeric properties can be sent as rational numbers.
    – If a numeric Property has textual data, it will give an error. Only numbers should be sent.
    – User ID: The unique ID of the user whose data will be sent must be sent in the customer system.
Share this Doc

User Activity Log

Or copy link

CONTENTS

How can I use MotivacraftTV?

We will show you how to use MotivacraftTV step by step.We will show you how to u...

MotivacraftTV

Articles

Videos

Can I change the information of an active user?

To edit a user you created, you must first click on the “Users” tab on the l...

How do I deactivate or delete a user?

In order to update the status of the user you created, you must click on the ...

How can I create a new user?

There are three different ways to add users in Motivacraft. You can create a use...

Users

How do I disable or delete a created competition?

In order to update the status of the competition you created, you must click on ...

How can I see the ranking of competing users?

To view the success ranking of users who have completed the competitions you hav...

How do I edit a competition I created?

To organize a competition you have created, you must first click on the “C...

How can I create a new competition?

To create a new competition, you must first click on the “Competitions” tab ...

Chat Icon Close Icon