# CodeCombat ## Docs - [Introduction](https://api-docs.codecombat.com/introduction.md) - [Models](https://api-docs.codecombat.com/models.md) - [Create User](https://api-docs.codecombat.com/users/post-users.md): Creates a User. - [Get User](https://api-docs.codecombat.com/users/get-users-handle.md): Returns a `User`. - [Update User](https://api-docs.codecombat.com/users/put-users-handle.md): Modify name of a `User` - [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 Hero](https://api-docs.codecombat.com/users/put-hero-config.md): Set the user's hero. - [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. - [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. - [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. - [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. - [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. - [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. - [Search for User](https://api-docs.codecombat.com/users/property-value.md): Redirects to `/users/{handle}` given a unique, identifying property - [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. - [Create a classroom](https://api-docs.codecombat.com/classrooms/post-classrooms.md): Creates a new empty `Classroom`. - [Get Classroom Details](https://api-docs.codecombat.com/classrooms/get-classrooms.md): Returns the classroom details for a class code. - [Upsert a user from classroom](https://api-docs.codecombat.com/classrooms/put-handle-members.md): Upserts a user into the classroom. - [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. - [Remove User from a classroom](https://api-docs.codecombat.com/classrooms/remove-enrolled.md): Removes an enrolled user from a course in a classroom. - [Get Member Stats](https://api-docs.codecombat.com/classrooms/get-stats.md): Returns a list of all members stats for the classroom. - [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 Playtime Stats](https://api-docs.codecombat.com/stats/playtime-stats.md): Returns the playtime stats - [Get License Stats](https://api-docs.codecombat.com/stats/license-stats.md): Returns the license stats ## 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)