Create new badge
curl --request POST \
--url https://admin.snagsolutions.io/api/loyalty/badges \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"organizationId": "123e4567-e89b-12d3-a456-426614174222",
"websiteId": "123e4567-e89b-12d3-a456-426614174111",
"name": "Example Badge",
"imageUrl": "https://example.com/image.png",
"conditions": [
{
"type": "rule",
"loyaltyRuleId": "123e4567-e89b-12d3-a456-426614174111"
}
],
"hideInUi": false,
"description": "Example description",
"rewards": [
{
"rewardType": "points",
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174333",
"loyaltyCurrencyIds": [
"123e4567-e89b-12d3-a456-426614174333"
],
"amount": 100,
"multiplier": 2.5,
"isRetroactive": false
}
],
"csvFiles": [
{
"src": "<string>",
"name": "<string>",
"description": "<string>"
}
]
}
'import requests
url = "https://admin.snagsolutions.io/api/loyalty/badges"
payload = {
"organizationId": "123e4567-e89b-12d3-a456-426614174222",
"websiteId": "123e4567-e89b-12d3-a456-426614174111",
"name": "Example Badge",
"imageUrl": "https://example.com/image.png",
"conditions": [
{
"type": "rule",
"loyaltyRuleId": "123e4567-e89b-12d3-a456-426614174111"
}
],
"hideInUi": False,
"description": "Example description",
"rewards": [
{
"rewardType": "points",
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174333",
"loyaltyCurrencyIds": ["123e4567-e89b-12d3-a456-426614174333"],
"amount": 100,
"multiplier": 2.5,
"isRetroactive": False
}
],
"csvFiles": [
{
"src": "<string>",
"name": "<string>",
"description": "<string>"
}
]
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organizationId: '123e4567-e89b-12d3-a456-426614174222',
websiteId: '123e4567-e89b-12d3-a456-426614174111',
name: 'Example Badge',
imageUrl: 'https://example.com/image.png',
conditions: [{type: 'rule', loyaltyRuleId: '123e4567-e89b-12d3-a456-426614174111'}],
hideInUi: false,
description: 'Example description',
rewards: [
{
rewardType: 'points',
loyaltyCurrencyId: '123e4567-e89b-12d3-a456-426614174333',
loyaltyCurrencyIds: ['123e4567-e89b-12d3-a456-426614174333'],
amount: 100,
multiplier: 2.5,
isRetroactive: false
}
],
csvFiles: [{src: '<string>', name: '<string>', description: '<string>'}]
})
};
fetch('https://admin.snagsolutions.io/api/loyalty/badges', 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://admin.snagsolutions.io/api/loyalty/badges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'organizationId' => '123e4567-e89b-12d3-a456-426614174222',
'websiteId' => '123e4567-e89b-12d3-a456-426614174111',
'name' => 'Example Badge',
'imageUrl' => 'https://example.com/image.png',
'conditions' => [
[
'type' => 'rule',
'loyaltyRuleId' => '123e4567-e89b-12d3-a456-426614174111'
]
],
'hideInUi' => false,
'description' => 'Example description',
'rewards' => [
[
'rewardType' => 'points',
'loyaltyCurrencyId' => '123e4567-e89b-12d3-a456-426614174333',
'loyaltyCurrencyIds' => [
'123e4567-e89b-12d3-a456-426614174333'
],
'amount' => 100,
'multiplier' => 2.5,
'isRetroactive' => false
]
],
'csvFiles' => [
[
'src' => '<string>',
'name' => '<string>',
'description' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://admin.snagsolutions.io/api/loyalty/badges"
payload := strings.NewReader("{\n \"organizationId\": \"123e4567-e89b-12d3-a456-426614174222\",\n \"websiteId\": \"123e4567-e89b-12d3-a456-426614174111\",\n \"name\": \"Example Badge\",\n \"imageUrl\": \"https://example.com/image.png\",\n \"conditions\": [\n {\n \"type\": \"rule\",\n \"loyaltyRuleId\": \"123e4567-e89b-12d3-a456-426614174111\"\n }\n ],\n \"hideInUi\": false,\n \"description\": \"Example description\",\n \"rewards\": [\n {\n \"rewardType\": \"points\",\n \"loyaltyCurrencyId\": \"123e4567-e89b-12d3-a456-426614174333\",\n \"loyaltyCurrencyIds\": [\n \"123e4567-e89b-12d3-a456-426614174333\"\n ],\n \"amount\": 100,\n \"multiplier\": 2.5,\n \"isRetroactive\": false\n }\n ],\n \"csvFiles\": [\n {\n \"src\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://admin.snagsolutions.io/api/loyalty/badges")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"organizationId\": \"123e4567-e89b-12d3-a456-426614174222\",\n \"websiteId\": \"123e4567-e89b-12d3-a456-426614174111\",\n \"name\": \"Example Badge\",\n \"imageUrl\": \"https://example.com/image.png\",\n \"conditions\": [\n {\n \"type\": \"rule\",\n \"loyaltyRuleId\": \"123e4567-e89b-12d3-a456-426614174111\"\n }\n ],\n \"hideInUi\": false,\n \"description\": \"Example description\",\n \"rewards\": [\n {\n \"rewardType\": \"points\",\n \"loyaltyCurrencyId\": \"123e4567-e89b-12d3-a456-426614174333\",\n \"loyaltyCurrencyIds\": [\n \"123e4567-e89b-12d3-a456-426614174333\"\n ],\n \"amount\": 100,\n \"multiplier\": 2.5,\n \"isRetroactive\": false\n }\n ],\n \"csvFiles\": [\n {\n \"src\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://admin.snagsolutions.io/api/loyalty/badges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organizationId\": \"123e4567-e89b-12d3-a456-426614174222\",\n \"websiteId\": \"123e4567-e89b-12d3-a456-426614174111\",\n \"name\": \"Example Badge\",\n \"imageUrl\": \"https://example.com/image.png\",\n \"conditions\": [\n {\n \"type\": \"rule\",\n \"loyaltyRuleId\": \"123e4567-e89b-12d3-a456-426614174111\"\n }\n ],\n \"hideInUi\": false,\n \"description\": \"Example description\",\n \"rewards\": [\n {\n \"rewardType\": \"points\",\n \"loyaltyCurrencyId\": \"123e4567-e89b-12d3-a456-426614174333\",\n \"loyaltyCurrencyIds\": [\n \"123e4567-e89b-12d3-a456-426614174333\"\n ],\n \"amount\": 100,\n \"multiplier\": 2.5,\n \"isRetroactive\": false\n }\n ],\n \"csvFiles\": [\n {\n \"src\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174333",
"name": "Example Badge",
"description": "Example description",
"imageUrl": "https://example.com/image.png",
"loyaltyConditions": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"type": "rule",
"description": "Example description",
"amount": 10,
"repeatCount": 5,
"requiredCount": 5,
"loyaltyRuleGroupId": "123e4567-e89b-12d3-a456-426614174333",
"association": [
{
"loyaltyRule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"loyaltyBadge": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"loyaltyRuleGroup": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"loyaltyCurrency": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"loyaltyLeaderboardView": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"loyaltyCurrencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csvUrl": "https://example.com/csv",
"csvFiles": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"url": "https://example.com/file.csv",
"name": "file.csv",
"description": "Example description"
}
]
}
],
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"hideInUi": false,
"rewards": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"rewardType": "points",
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174333",
"amount": 100,
"multiplier": 2.5,
"isRetroactive": false,
"loyaltyCurrencyIds": [
"123e4567-e89b-12d3-a456-426614174333"
]
}
],
"loyaltyBadgeUsers": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"userId": "123e4567-e89b-12d3-a456-426614174222",
"websiteId": "123e4567-e89b-12d3-a456-426614174111",
"organizationId": "123e4567-e89b-12d3-a456-426614174222",
"status": "active",
"loyaltyBadgeId": "123e4567-e89b-12d3-a456-426614174333",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"hideInUi": false,
"progress": "<unknown>",
"dismissedInUi": false,
"user": {
"id": "123e4567-e89b-12d3-a456-426614174222",
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678"
},
"completedAt": "2021-01-01T00:00:00.000Z"
}
],
"loyaltyRules": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"name": "Example Rule"
}
],
"dataJobs": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"status": "pending",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"message": "Data job is pending"
}
]
}"Forbidden, Could not validate api key"{
"success": false,
"message": "Internal server error",
"debugInfo": "Stack trace or additional error details"
}Badge
Create new badge
This endpoint allows you to configure a new badge
POST
/
api
/
loyalty
/
badges
Create new badge
curl --request POST \
--url https://admin.snagsolutions.io/api/loyalty/badges \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"organizationId": "123e4567-e89b-12d3-a456-426614174222",
"websiteId": "123e4567-e89b-12d3-a456-426614174111",
"name": "Example Badge",
"imageUrl": "https://example.com/image.png",
"conditions": [
{
"type": "rule",
"loyaltyRuleId": "123e4567-e89b-12d3-a456-426614174111"
}
],
"hideInUi": false,
"description": "Example description",
"rewards": [
{
"rewardType": "points",
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174333",
"loyaltyCurrencyIds": [
"123e4567-e89b-12d3-a456-426614174333"
],
"amount": 100,
"multiplier": 2.5,
"isRetroactive": false
}
],
"csvFiles": [
{
"src": "<string>",
"name": "<string>",
"description": "<string>"
}
]
}
'import requests
url = "https://admin.snagsolutions.io/api/loyalty/badges"
payload = {
"organizationId": "123e4567-e89b-12d3-a456-426614174222",
"websiteId": "123e4567-e89b-12d3-a456-426614174111",
"name": "Example Badge",
"imageUrl": "https://example.com/image.png",
"conditions": [
{
"type": "rule",
"loyaltyRuleId": "123e4567-e89b-12d3-a456-426614174111"
}
],
"hideInUi": False,
"description": "Example description",
"rewards": [
{
"rewardType": "points",
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174333",
"loyaltyCurrencyIds": ["123e4567-e89b-12d3-a456-426614174333"],
"amount": 100,
"multiplier": 2.5,
"isRetroactive": False
}
],
"csvFiles": [
{
"src": "<string>",
"name": "<string>",
"description": "<string>"
}
]
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organizationId: '123e4567-e89b-12d3-a456-426614174222',
websiteId: '123e4567-e89b-12d3-a456-426614174111',
name: 'Example Badge',
imageUrl: 'https://example.com/image.png',
conditions: [{type: 'rule', loyaltyRuleId: '123e4567-e89b-12d3-a456-426614174111'}],
hideInUi: false,
description: 'Example description',
rewards: [
{
rewardType: 'points',
loyaltyCurrencyId: '123e4567-e89b-12d3-a456-426614174333',
loyaltyCurrencyIds: ['123e4567-e89b-12d3-a456-426614174333'],
amount: 100,
multiplier: 2.5,
isRetroactive: false
}
],
csvFiles: [{src: '<string>', name: '<string>', description: '<string>'}]
})
};
fetch('https://admin.snagsolutions.io/api/loyalty/badges', 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://admin.snagsolutions.io/api/loyalty/badges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'organizationId' => '123e4567-e89b-12d3-a456-426614174222',
'websiteId' => '123e4567-e89b-12d3-a456-426614174111',
'name' => 'Example Badge',
'imageUrl' => 'https://example.com/image.png',
'conditions' => [
[
'type' => 'rule',
'loyaltyRuleId' => '123e4567-e89b-12d3-a456-426614174111'
]
],
'hideInUi' => false,
'description' => 'Example description',
'rewards' => [
[
'rewardType' => 'points',
'loyaltyCurrencyId' => '123e4567-e89b-12d3-a456-426614174333',
'loyaltyCurrencyIds' => [
'123e4567-e89b-12d3-a456-426614174333'
],
'amount' => 100,
'multiplier' => 2.5,
'isRetroactive' => false
]
],
'csvFiles' => [
[
'src' => '<string>',
'name' => '<string>',
'description' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://admin.snagsolutions.io/api/loyalty/badges"
payload := strings.NewReader("{\n \"organizationId\": \"123e4567-e89b-12d3-a456-426614174222\",\n \"websiteId\": \"123e4567-e89b-12d3-a456-426614174111\",\n \"name\": \"Example Badge\",\n \"imageUrl\": \"https://example.com/image.png\",\n \"conditions\": [\n {\n \"type\": \"rule\",\n \"loyaltyRuleId\": \"123e4567-e89b-12d3-a456-426614174111\"\n }\n ],\n \"hideInUi\": false,\n \"description\": \"Example description\",\n \"rewards\": [\n {\n \"rewardType\": \"points\",\n \"loyaltyCurrencyId\": \"123e4567-e89b-12d3-a456-426614174333\",\n \"loyaltyCurrencyIds\": [\n \"123e4567-e89b-12d3-a456-426614174333\"\n ],\n \"amount\": 100,\n \"multiplier\": 2.5,\n \"isRetroactive\": false\n }\n ],\n \"csvFiles\": [\n {\n \"src\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://admin.snagsolutions.io/api/loyalty/badges")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"organizationId\": \"123e4567-e89b-12d3-a456-426614174222\",\n \"websiteId\": \"123e4567-e89b-12d3-a456-426614174111\",\n \"name\": \"Example Badge\",\n \"imageUrl\": \"https://example.com/image.png\",\n \"conditions\": [\n {\n \"type\": \"rule\",\n \"loyaltyRuleId\": \"123e4567-e89b-12d3-a456-426614174111\"\n }\n ],\n \"hideInUi\": false,\n \"description\": \"Example description\",\n \"rewards\": [\n {\n \"rewardType\": \"points\",\n \"loyaltyCurrencyId\": \"123e4567-e89b-12d3-a456-426614174333\",\n \"loyaltyCurrencyIds\": [\n \"123e4567-e89b-12d3-a456-426614174333\"\n ],\n \"amount\": 100,\n \"multiplier\": 2.5,\n \"isRetroactive\": false\n }\n ],\n \"csvFiles\": [\n {\n \"src\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://admin.snagsolutions.io/api/loyalty/badges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organizationId\": \"123e4567-e89b-12d3-a456-426614174222\",\n \"websiteId\": \"123e4567-e89b-12d3-a456-426614174111\",\n \"name\": \"Example Badge\",\n \"imageUrl\": \"https://example.com/image.png\",\n \"conditions\": [\n {\n \"type\": \"rule\",\n \"loyaltyRuleId\": \"123e4567-e89b-12d3-a456-426614174111\"\n }\n ],\n \"hideInUi\": false,\n \"description\": \"Example description\",\n \"rewards\": [\n {\n \"rewardType\": \"points\",\n \"loyaltyCurrencyId\": \"123e4567-e89b-12d3-a456-426614174333\",\n \"loyaltyCurrencyIds\": [\n \"123e4567-e89b-12d3-a456-426614174333\"\n ],\n \"amount\": 100,\n \"multiplier\": 2.5,\n \"isRetroactive\": false\n }\n ],\n \"csvFiles\": [\n {\n \"src\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174333",
"name": "Example Badge",
"description": "Example description",
"imageUrl": "https://example.com/image.png",
"loyaltyConditions": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"type": "rule",
"description": "Example description",
"amount": 10,
"repeatCount": 5,
"requiredCount": 5,
"loyaltyRuleGroupId": "123e4567-e89b-12d3-a456-426614174333",
"association": [
{
"loyaltyRule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"loyaltyBadge": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"loyaltyRuleGroup": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"loyaltyCurrency": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"loyaltyLeaderboardView": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"loyaltyCurrencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csvUrl": "https://example.com/csv",
"csvFiles": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"url": "https://example.com/file.csv",
"name": "file.csv",
"description": "Example description"
}
]
}
],
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"hideInUi": false,
"rewards": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"rewardType": "points",
"loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174333",
"amount": 100,
"multiplier": 2.5,
"isRetroactive": false,
"loyaltyCurrencyIds": [
"123e4567-e89b-12d3-a456-426614174333"
]
}
],
"loyaltyBadgeUsers": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"userId": "123e4567-e89b-12d3-a456-426614174222",
"websiteId": "123e4567-e89b-12d3-a456-426614174111",
"organizationId": "123e4567-e89b-12d3-a456-426614174222",
"status": "active",
"loyaltyBadgeId": "123e4567-e89b-12d3-a456-426614174333",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"hideInUi": false,
"progress": "<unknown>",
"dismissedInUi": false,
"user": {
"id": "123e4567-e89b-12d3-a456-426614174222",
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678"
},
"completedAt": "2021-01-01T00:00:00.000Z"
}
],
"loyaltyRules": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"name": "Example Rule"
}
],
"dataJobs": [
{
"id": "123e4567-e89b-12d3-a456-426614174333",
"status": "pending",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"message": "Data job is pending"
}
]
}"Forbidden, Could not validate api key"{
"success": false,
"message": "Internal server error",
"debugInfo": "Stack trace or additional error details"
}Body
application/json
Body
Schema for creating a new badge.
Response
200
Response returned upon successful creation of the badge.
Was this page helpful?