POST
/
api
/
Activity
/
create
curl --request POST \
  --url https://gameapi.tribalarena.com/api/Activity/create \
  --header 'Content-Type: application/json' \
  --header 'x-ta-tenant-jwt: <x-ta-tenant-jwt>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "defaultAmountPerTransaction": 123,
  "minAmountPerTransaction": 123,
  "maxAmountPerTransaction": 123,
  "interval": "year",
  "maxTransactionsPerInterval": 123,
  "currencyId": 123,
  "userRole": "player",
  "roleLevel": "cadet"
}'
{
  "name": "<string>",
  "description": "<string>",
  "defaultAmountPerTransaction": 123,
  "minAmountPerTransaction": 123,
  "maxAmountPerTransaction": 123,
  "interval": "year",
  "maxTransactionsPerInterval": 123,
  "currencyId": 123,
  "userRole": "player",
  "roleLevel": "cadet"
}

Headers

x-ta-tenant-jwt
string
required

This is required for all api calls. Ask support to or check out the docs on how to generate this.

Body

name
string | null
description
string | null
defaultAmountPerTransaction
number
minAmountPerTransaction
number
maxAmountPerTransaction
number
interval
enum<string>
Available options:
year,
quarter,
month,
dayOfYear,
day,
weekOfYear,
weekday,
hour,
minute,
second
maxTransactionsPerInterval
integer
currencyId
integer
userRole
enum<string>
Available options:
player,
tribeAdmin,
tribalOrganizer,
gameOwner,
caster,
tribalMod,
god,
tribalPlayer,
tenantTeamMember,
tenantAdmin,
tenantFeatureManager
roleLevel
enum<string>
Available options:
cadet,
captain,
major,
lieutenent,
general,
suspend

Response

200
application/json
Success
name
string | null
description
string | null
defaultAmountPerTransaction
number
minAmountPerTransaction
number
maxAmountPerTransaction
number
interval
enum<string>
Available options:
year,
quarter,
month,
dayOfYear,
day,
weekOfYear,
weekday,
hour,
minute,
second
maxTransactionsPerInterval
integer
currencyId
integer
userRole
enum<string>
Available options:
player,
tribeAdmin,
tribalOrganizer,
gameOwner,
caster,
tribalMod,
god,
tribalPlayer,
tenantTeamMember,
tenantAdmin,
tenantFeatureManager
roleLevel
enum<string>
Available options:
cadet,
captain,
major,
lieutenent,
general,
suspend