curl --request POST \
--url https://api.engagefabric.com/players/{id}/flagimport requests
url = "https://api.engagefabric.com/players/{id}/flag"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.engagefabric.com/players/{id}/flag', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engagefabric.com/players/{id}/flag",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.engagefabric.com/players/{id}/flag"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.engagefabric.com/players/{id}/flag")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/players/{id}/flag")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"projectId": "123e4567-e89b-12d3-a456-426614174000",
"externalUserId": "user_12345",
"xp": 1250,
"level": 5,
"lives": 3,
"maxLives": 5,
"livesUpdatedAt": "2025-01-15T10:30:00Z",
"currencies": {
"coins": 500,
"gems": 50
},
"status": "ACTIVE",
"isFlagged": false,
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-01-15T10:30:00Z",
"lastSeenAt": "2025-01-15T10:30:00Z",
"displayName": "John Doe",
"avatarUrl": "https://example.com/avatars/johndoe.png",
"locale": "en-US",
"flagReason": null,
"metadata": {
"accountType": "premium"
},
"deletedAt": null
}Flag a player for review
Flags a player for potential cheating or abuse
curl --request POST \
--url https://api.engagefabric.com/players/{id}/flagimport requests
url = "https://api.engagefabric.com/players/{id}/flag"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.engagefabric.com/players/{id}/flag', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engagefabric.com/players/{id}/flag",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.engagefabric.com/players/{id}/flag"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.engagefabric.com/players/{id}/flag")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/players/{id}/flag")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"projectId": "123e4567-e89b-12d3-a456-426614174000",
"externalUserId": "user_12345",
"xp": 1250,
"level": 5,
"lives": 3,
"maxLives": 5,
"livesUpdatedAt": "2025-01-15T10:30:00Z",
"currencies": {
"coins": 500,
"gems": 50
},
"status": "ACTIVE",
"isFlagged": false,
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-01-15T10:30:00Z",
"lastSeenAt": "2025-01-15T10:30:00Z",
"displayName": "John Doe",
"avatarUrl": "https://example.com/avatars/johndoe.png",
"locale": "en-US",
"flagReason": null,
"metadata": {
"accountType": "premium"
},
"deletedAt": null
}Path Parameters
Player UUID
Response
Player flagged successfully
Unique player identifier
"123e4567-e89b-12d3-a456-426614174000"
Project ID this player belongs to
"123e4567-e89b-12d3-a456-426614174000"
External user ID from client application
"user_12345"
Player XP
1250
Player level
5
Current lives/energy
3
Maximum lives
5
Last time lives were updated
"2025-01-15T10:30:00Z"
Player currencies (key-value pairs)
{ "coins": 500, "gems": 50 }
Player status
ACTIVE, SUSPENDED, BANNED "ACTIVE"
Whether player is flagged for review
false
Creation timestamp
"2025-01-15T10:30:00Z"
Last update timestamp
"2025-01-15T10:30:00Z"
Last activity timestamp
"2025-01-15T10:30:00Z"
Player display name
"John Doe"
Player avatar URL
"https://example.com/avatars/johndoe.png"
Player locale
"en-US"
Reason for flagging
null
Additional player metadata
{ "accountType": "premium" }
Soft deletion timestamp
null
