mutation RegisterOffChainEvent {
insert_points_config_registered_events_one(object: {event_name: "my_points_event", 
description: "This is a sample points event."}) {
    uuid_id
    created_at
    added_by
  }
}
{
  "data": {
    "insert_points_config_registered_events_one": {
      "uuid_id": "ebffbc49-fa89-4e73-ab40-4e8be59331fd",
      "created_at": "2024-10-17T02:10:12.826924+00:00",
      "added_by": "729af390-29d0-402a-b73a-d2164d914020"
    }
  }
}

The Register Off-Chain Event API allows you to register new events before issuing points for them. This is a prerequisite step for using the Points API.

mutation RegisterOffChainEvent {
insert_points_config_registered_events_one(object: {event_name: "my_points_event", 
description: "This is a sample points event."}) {
    uuid_id
    created_at
    added_by
  }
}
{
  "data": {
    "insert_points_config_registered_events_one": {
      "uuid_id": "ebffbc49-fa89-4e73-ab40-4e8be59331fd",
      "created_at": "2024-10-17T02:10:12.826924+00:00",
      "added_by": "729af390-29d0-402a-b73a-d2164d914020"
    }
  }
}

This API allows you to register new events that can later be used for issuing points. Each event must be registered only once before it can be used in the Points API.

You only need to register an event once. After registration, you can use the event_name multiple times in the Points API.

Parameters

FAQ

No, you only need to register an event once. After registration, you can use the event_name multiple times in the Points API to issue points for that event.

Remember to use the same uuid_id in both the Register Event API and the Points API to ensure consistency and proper tracking of your events.