{"info":{"title":"calendars 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/calendars/{objectId}/claim":{"post":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Bad Request"}},"parameters":[{"name":"objectId","in":"path","schema":{"type":"string"},"description":"Gamertag of the player.Underlying objectId type is integer in format int64.","required":true,"x-beamable-object-id":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarClaimRequest"}}}},"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}]},"/object/calendars/{objectId}/":{"get":{"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarQueryResponse"}}}},"400":{"description":"Bad Request"}},"parameters":[{"name":"objectId","in":"path","schema":{"type":"string"},"description":"Gamertag of the player.Underlying objectId type is integer in format int64.","required":true,"x-beamable-object-id":{"type":"integer","format":"int64"}}],"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}]}},"components":{"schemas":{"CommonResponse":{"properties":{"result":{"type":"string"},"data":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false,"title":"Common Response","type":"object","required":["result","data"]},"EntitlementGenerator":{"type":"object","additionalProperties":false,"properties":{"quantity":{"type":"integer","format":"int32"},"claimWindow":{"$ref":"#/components/schemas/EntitlementClaimWindow"},"params":{"type":"object","additionalProperties":{"type":"string"}},"symbol":{"type":"string"},"specialization":{"type":"string"},"action":{"type":"string"}},"required":["symbol","action"]},"RewardCalendarDay":{"type":"object","additionalProperties":false,"properties":{"obtain":{"type":"array","items":{"$ref":"#/components/schemas/EntitlementGenerator"}}},"required":["obtain"]},"CalendarView":{"type":"object","additionalProperties":false,"properties":{"nextIndex":{"type":"integer","format":"int32"},"nextClaimSeconds":{"type":"integer","format":"int64"},"id":{"type":"string"},"remainingSeconds":{"type":"integer","format":"int64"},"days":{"type":"array","items":{"$ref":"#/components/schemas/RewardCalendarDay"}}},"required":["id","days","nextIndex","remainingSeconds","nextClaimSeconds"]},"EntitlementClaimWindow":{"type":"object","additionalProperties":false,"properties":{"open":{"type":"integer","format":"int64"},"close":{"type":"integer","format":"int64"}},"required":["open","close"]},"CalendarClaimRequest":{"properties":{"id":{"type":"string"}},"additionalProperties":false,"title":"Calendar Claim Request","type":"object","required":["id"]},"CalendarQueryResponse":{"properties":{"calendars":{"type":"array","items":{"$ref":"#/components/schemas/CalendarView"}}},"additionalProperties":false,"title":"Calendar Query Response","type":"object","required":["calendars"]}},"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"}