# CodeCombat ## Docs - [Login User](https://api-docs.codecombat.com/auth/login.md): Logs a user in. - [Upsert User Into Clan](https://api-docs.codecombat.com/clans/members.md): Upserts a user into the clan. - [Delete User from Classroom](https://api-docs.codecombat.com/classrooms/delete-handle-members.md): Remove a user from the classroom. - [Enroll User in a Course](https://api-docs.codecombat.com/classrooms/enrolled.md): Enrolls a user in a course in a classroom. If the course is paid, user must have an active license. User must be a member of the classroom. - [Get Classroom Details](https://api-docs.codecombat.com/classrooms/get-classrooms.md): Returns the classroom details for a class code. - [Get Level Session](https://api-docs.codecombat.com/classrooms/get-sessions.md): Returns a list of all levels played by the user for the classroom. - [Get Member Stats](https://api-docs.codecombat.com/classrooms/get-stats.md): Returns a list of all members stats for the classroom. - [Create a classroom](https://api-docs.codecombat.com/classrooms/post-classrooms.md): Creates a new empty `Classroom`. - [Upsert a user from classroom](https://api-docs.codecombat.com/classrooms/put-handle-members.md): Upserts a user into the classroom. - [Remove User from a classroom](https://api-docs.codecombat.com/classrooms/remove-enrolled.md): Removes an enrolled user from a course in a classroom. - [Introduction](https://api-docs.codecombat.com/introduction.md) - [Models](https://api-docs.codecombat.com/models.md) - [Get License Stats](https://api-docs.codecombat.com/stats/license-stats.md): Returns the license stats - [Get Playtime Stats](https://api-docs.codecombat.com/stats/playtime-stats.md): Returns the playtime stats - [Get Classrooms By User](https://api-docs.codecombat.com/users/get-classrooms.md): Returns a list of `Classrooms` this user is in (if a student) or owns (if a teacher). - [Get User](https://api-docs.codecombat.com/users/get-users-handle.md): Returns a `User`. - [Grant User License](https://api-docs.codecombat.com/users/license.md): Grants a user access to the Classroom version up to a certain time. Sets their role to student. - [Add Oauth2 Identity](https://api-docs.codecombat.com/users/post-o-auth-identities.md): Adds an OAuth2 identity to the user, so that they can be logged in with that identity. You need to send the OAuth code or the access token to this endpoint. - [Create User](https://api-docs.codecombat.com/users/post-users.md): Creates a User. - [Search for User](https://api-docs.codecombat.com/users/property-value.md): Redirects to `/users/{handle}` given a unique, identifying property - [Put Ace Config](https://api-docs.codecombat.com/users/put-ace-config.md): Set the user's aceConfig (the settings for the in-game Ace code editor), such as whether to enable autocomplete. - [Get User Hero](https://api-docs.codecombat.com/users/put-hero-config.md): Set the user's hero. - [Put Subscription](https://api-docs.codecombat.com/users/put-subscription.md): Grants a user premium access to the “Home” version up to a certain time. - [Update User](https://api-docs.codecombat.com/users/put-users-handle.md): Modify name of a `User` - [Shorten User License](https://api-docs.codecombat.com/users/shorten-license.md): If the user already has access to the “Classroom” version up to a certain time, this shortens/revokes his/her access. If the ends is less than or equal to the current time, it revokes the enrollment and sets the end date to be the current time, else it just shortens the enrollment. - [Shorten User Subscription](https://api-docs.codecombat.com/users/shorten-subscription.md): If the user already has a premium access up to a certain time, this shortens/revokes his/her premium access. If the ends is less than or equal to the current time, it revokes the subscription and sets the end date to be the current time, else it just shortens the subscription. ## OpenAPI Specs - [openapi](https://api-docs.codecombat.com/openapi.yml) - [codecombat-openapi-by-fern](https://api-docs.codecombat.com/codecombat-openapi-by-fern.yml) ## Optional - [Blog](https://blog.codecombat.com/) - [Contact Us](mailto:support@codecombat.com)