We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This issue involves creating an endpoint to update the language preference for a specific user in the system.
Method: PUT URL: /api/v1/users/{userId}/language
Content-Type: application/json Body:
{ "language_code": "string" }
Status Code: 200 Body:
{ "status_code": 200, "message": "User language updated successfully" }
Error Response (Unauthorized) Status Code: 401 Body:
{ "status_code": 401, "message": "Unauthorized" }
Error Response (Forbidden) Status Code: 403 Body:
{ "status_code": 403, "message": "Forbidden" }
Error Response (Not Found) Status Code: 404 Body:
{ "status_code": 404, "message": "User not found" }
Error Response (Bad Request) Status Code: 400 Body:
{ "status_code": 400, "message": "Invalid language code" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
This issue involves creating an endpoint to update the language preference for a specific user in the system.
Endpoint
Method: PUT
URL: /api/v1/users/{userId}/language
Request Body
Content-Type: application/json
Body:
Success Response
Status Code: 200
Body:
Error Responses
Error Response (Unauthorized)
Status Code: 401
Body:
Error Response (Forbidden)
Status Code: 403
Body:
Error Response (Not Found)
Status Code: 404
Body:
Error Response (Bad Request)
Status Code: 400
Body:
Checklist
Error Handling
Security Measures
Tasks
The text was updated successfully, but these errors were encountered: