You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server must return a 401 error if the client is not authenticated.
The server must return a 403 error if the current user's role is not ADMIN.
The server must return a 404 error if the given ID does not correspond to a leaderboard in the database.
The endpoint accepts a JSON request body containing an object that must contain one or several of the following fields:
Name: string
Slug: string
Info: string
If the request body does not contain at least one of the above fields, the server must return a 422 error.
The server must return a 409 error if the provided slug is already in use by a non-deleted leaderboard and the server must not update any of the leaderboard's fields.
The server returns a 422 error if
slug is not between 2 and 80 characters inclusive.
the slug is not comprised solely of alphanumeric digits, hyphens, and underscores.
Upon a successful request, the specified fields of the leaderboard with ID id must be updated to the supplied values in the database, the leaderboard's UpdatedAt field must be set to the current time, and a 204 status code must be returned.
None of the leaderboard's fields other than the ones specified above may be accepted.
The text was updated successfully, but these errors were encountered:
PATCH
/leaderboard/{id}
whereid
is a long.The server must return a 401 error if the client is not authenticated.
The server must return a 403 error if the current user's role is not
ADMIN
.The server must return a 404 error if the given ID does not correspond to a leaderboard in the database.
The endpoint accepts a JSON request body containing an object that must contain one or several of the following fields:
If the request body does not contain at least one of the above fields, the server must return a 422 error.
The server must return a 409 error if the provided slug is already in use by a non-deleted leaderboard and the server must not update any of the leaderboard's fields.
The server returns a 422 error if
Upon a successful request, the specified fields of the leaderboard with ID
id
must be updated to the supplied values in the database, the leaderboard'sUpdatedAt
field must be set to the current time, and a 204 status code must be returned.None of the leaderboard's fields other than the ones specified above may be accepted.
The text was updated successfully, but these errors were encountered: