{"info":{"title":"stats object","version":"1.0","contact":{"name":"Beamable Support","url":"https://api.beamable.com","email":"support@beamable.com"}},"servers":[{"url":"https://api.beamable.com"}],"paths":{"/object/stats/{objectId}/client/stringlist":{"post":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyResponse"}}}},"400":{"description":"Bad Request"}},"parameters":[{"name":"objectId","in":"path","schema":{"type":"string","x-beamable-semantic-type":"StatsType"},"description":"Format: domain.visibility.type.gamerTag","required":true,"x-beamable-object-id":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatUpdateRequestStringListFormat"}}}},"security":[{"user":[]},{"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}]},"/object/stats/{objectId}/":{"get":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsResponse"}}}},"400":{"description":"Bad Request"}},"parameters":[{"name":"stats","in":"query","schema":{"type":"string"},"required":false},{"name":"objectId","in":"path","schema":{"type":"string","x-beamable-semantic-type":"StatsType"},"description":"Format: domain.visibility.type.gamerTag","required":true,"x-beamable-object-id":{"type":"string"}}],"security":[{"user":["tester"]},{"server":[]}]},"post":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyResponse"}}}},"400":{"description":"Bad Request"}},"parameters":[{"name":"objectId","in":"path","schema":{"type":"string","x-beamable-semantic-type":"StatsType"},"description":"Format: domain.visibility.type.gamerTag","required":true,"x-beamable-object-id":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatUpdateRequest"}}}},"security":[{"user":["developer"]},{"server":[]}]},"delete":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyResponse"}}}},"400":{"description":"Bad Request"}},"parameters":[{"name":"objectId","in":"path","schema":{"type":"string","x-beamable-semantic-type":"StatsType"},"description":"Format: domain.visibility.type.gamerTag","required":true,"x-beamable-object-id":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatRequest"}}}},"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}]},"/object/stats/{objectId}/client":{"get":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsResponse"}}}},"400":{"description":"Bad Request"}},"parameters":[{"name":"stats","in":"query","schema":{"type":"string"},"required":false},{"name":"objectId","in":"path","schema":{"type":"string","x-beamable-semantic-type":"StatsType"},"description":"Format: domain.visibility.type.gamerTag","required":true,"x-beamable-object-id":{"type":"string"}}],"security":[{"user":[]},{"server":[]}]},"post":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyResponse"}}}},"400":{"description":"Bad Request"}},"parameters":[{"name":"objectId","in":"path","schema":{"type":"string","x-beamable-semantic-type":"StatsType"},"description":"Format: domain.visibility.type.gamerTag","required":true,"x-beamable-object-id":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatUpdateRequest"}}}},"security":[{"user":[]},{"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":{"StatUpdateRequestStringListFormat":{"properties":{"set":{"type":"array","items":{"$ref":"#/components/schemas/StatStringListEntry"}}},"additionalProperties":false,"title":"Stat Update Request String List Format","type":"object"},"StatUpdateRequest":{"properties":{"objectId":{"type":"string","x-beamable-semantic-type":"StatsType"},"set":{"type":"object","additionalProperties":{"type":"string"}},"add":{"type":"object","additionalProperties":{"type":"string"}},"emitAnalytics":{"type":"boolean"}},"additionalProperties":false,"title":"Stat Update Request","type":"object"},"StatRequest":{"properties":{"stats":{"type":"string"}},"additionalProperties":false,"title":"Stat Request","type":"object"},"StatsResponse":{"properties":{"id":{"type":"integer","format":"int64","x-beamable-semantic-type":"Gamertag"},"stats":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false,"title":"Stats Response","type":"object","required":["id","stats"]},"EmptyResponse":{"properties":{"result":{"type":"string"}},"additionalProperties":false,"title":"Empty Response","type":"object","required":["result"]},"StatStringListEntry":{"type":"object","additionalProperties":false,"properties":{"k":{"type":"string"},"v":{"type":"string"}},"required":["k","v"]}},"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"}