{"info":{"title":"stats basic","version":"1.0","contact":{"name":"Beamable Support","url":"https://api.beamable.com","email":"support@beamable.com"}},"servers":[{"url":"https://api.beamable.com"}],"paths":{"/basic/stats/subscribe":{"put":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Bad Request"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsSubscribeRequest"}}}},"security":[{"user":["developer"]},{"server":[]}]},"delete":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Bad Request"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsUnsubscribeRequest"}}}},"security":[{"user":["developer"]},{"server":[]}]},"parameters":[{"name":"X-BEAM-SCOPE","in":"header","schema":{"type":"string"},"description":"Customer and project scope. This should be in the form of '<customer-id>.<project-id>'.","required":true},{"name":"X-BEAM-GAMERTAG","in":"header","schema":{"type":"string"},"description":"Override the Gamer Tag of the player. This is generally inferred by the auth token.","required":false}]},"/basic/stats/client/batch":{"get":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchReadStatsResponse"}}}},"400":{"description":"Bad Request"}},"parameters":[{"name":"objectIds","in":"query","schema":{"type":"string","x-beamable-semantic-type":"StatsType"},"required":true},{"name":"stats","in":"query","schema":{"type":"string"},"required":false},{"name":"format","in":"query","schema":{"type":"string"},"required":false}],"security":[{}]},"parameters":[{"name":"X-BEAM-SCOPE","in":"header","schema":{"type":"string"},"description":"Customer and project scope. This should be in the form of '<customer-id>.<project-id>'.","required":true},{"name":"X-BEAM-GAMERTAG","in":"header","schema":{"type":"string"},"description":"Override the Gamer Tag of the player. This is generally inferred by the auth token.","required":false}]},"/basic/stats/batch":{"post":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyResponse"}}}},"400":{"description":"Bad Request"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSetStatsRequest"}}}},"security":[{"user":["developer"]},{"server":[]}]},"parameters":[{"name":"X-BEAM-SCOPE","in":"header","schema":{"type":"string"},"description":"Customer and project scope. This should be in the form of '<customer-id>.<project-id>'.","required":true},{"name":"X-BEAM-GAMERTAG","in":"header","schema":{"type":"string"},"description":"Override the Gamer Tag of the player. This is generally inferred by the auth token.","required":false}]},"/basic/stats/search":{"post":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsSearchResponse"}}}},"400":{"description":"Bad Request"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsSearchRequest"}}}},"security":[{"user":["tester"]},{"server":[]}]},"parameters":[{"name":"X-BEAM-SCOPE","in":"header","schema":{"type":"string"},"description":"Customer and project scope. This should be in the form of '<customer-id>.<project-id>'.","required":true},{"name":"X-BEAM-GAMERTAG","in":"header","schema":{"type":"string"},"description":"Override the Gamer Tag of the player. This is generally inferred by the auth token.","required":false}]},"/basic/stats/search/extended":{"post":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchExtendedResponse"}}}},"400":{"description":"Bad Request"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchExtendedRequest"}}}},"security":[{"user":["tester"]},{"server":[]}]},"parameters":[{"name":"X-BEAM-SCOPE","in":"header","schema":{"type":"string"},"description":"Customer and project scope. This should be in the form of '<customer-id>.<project-id>'.","required":true},{"name":"X-BEAM-GAMERTAG","in":"header","schema":{"type":"string"},"description":"Override the Gamer Tag of the player. This is generally inferred by the auth token.","required":false}]}},"components":{"schemas":{"StatUpdateRequest":{"type":"object","additionalProperties":false,"properties":{"objectId":{"type":"string","x-beamable-semantic-type":"StatsType"},"set":{"type":"object","additionalProperties":{"type":"string"}},"add":{"type":"object","additionalProperties":{"type":"string"}},"emitAnalytics":{"type":"boolean"}}},"StatsUnsubscribeRequest":{"properties":{"service":{"type":"string"},"subscriptions":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"title":"Stats Unsubscribe Request","type":"object","required":["service"]},"StatsSubscribeRequest":{"properties":{"service":{"type":"string"},"subscriptions":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"title":"Stats Subscribe Request","type":"object","required":["service","subscriptions"]},"StatsSearchResponse":{"properties":{"ids":{"type":"array","items":{"x-beamable-semantic-type":"Gamertag","type":"integer","format":"int64"}},"offset":{"type":"integer","format":"int32"},"limit":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"}},"additionalProperties":false,"title":"Stats Search Response","type":"object","required":["ids"]},"NetworkSerializable":{"type":"object","additionalProperties":false,"properties":{}},"CommonResponse":{"properties":{"result":{"type":"string"},"data":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false,"title":"Common Response","type":"object","required":["result","data"]},"BatchReadStatsRequest":{"properties":{"objectIds":{"type":"string","x-beamable-semantic-type":"StatsType"},"stats":{"type":"string"},"format":{"type":"string"}},"additionalProperties":false,"title":"Batch Read Stats Request","type":"object","required":["objectIds"]},"BatchSetStatsRequest":{"properties":{"updates":{"type":"array","items":{"$ref":"#/components/schemas/StatUpdateRequest"}}},"additionalProperties":false,"title":"Batch Set Stats Request","type":"object","required":["updates"]},"StatsSearchRequest":{"properties":{"criteria":{"type":"array","items":{"$ref":"#/components/schemas/StatsSearchCriteria"}},"domain":{"type":"string"},"offset":{"type":"integer","format":"int32"},"objectType":{"type":"string"},"limit":{"type":"integer","format":"int32"},"access":{"type":"string"}},"additionalProperties":false,"title":"Stats Search Request","type":"object","required":["domain","access","objectType","criteria"]},"StatsSearchCriteria":{"type":"object","additionalProperties":false,"properties":{"stat":{"type":"string"},"rel":{"type":"string"},"value":{"type":"string"}},"required":["stat","rel"]},"BatchReadStatsResponse":{"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/NetworkSerializable"}}},"additionalProperties":false,"title":"Batch Read Stats Response","type":"object","required":["results"]},"EmptyResponse":{"properties":{"result":{"type":"string"}},"additionalProperties":false,"title":"Empty Response","type":"object","required":["result"]},"SearchExtendedResponse":{"properties":{"gamerStats":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"offset":{"type":"integer","format":"int32"},"limit":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"}},"additionalProperties":false,"title":"Search Extended Response","type":"object","required":["gamerStats"]},"SearchExtendedRequest":{"properties":{"criteria":{"type":"array","items":{"$ref":"#/components/schemas/StatsSearchCriteria"}},"domain":{"type":"string"},"offset":{"type":"integer","format":"int32"},"objectType":{"type":"string"},"statKeys":{"type":"array","items":{"type":"string"}},"limit":{"type":"integer","format":"int32"},"access":{"type":"string"}},"additionalProperties":false,"title":"Search Extended Request","type":"object","required":["domain","access","objectType","criteria","statKeys"]}},"securitySchemes":{"server":{"type":"apiKey","name":"X-DE-SIGNATURE","in":"header","description":"Signed Request authentication using project secret key."},"user":{"type":"http","description":"Bearer authentication with a player access token in the Authorization header.","scheme":"bearer","bearerFormat":"Bearer <Access Token>"}}},"security":[],"externalDocs":{"description":"Beamable Documentation","url":"https://docs.beamable.com"},"openapi":"3.0.2"}