user
Get user region
Changed onRetrieves the region information for a specific user.
get/users/{userId}/regions
Request
- Base URLhttps://staging.api-golang.boilerplate.hng.tech/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
userIdstring uuid required
ID of the user to retrieve the region information for.
Response
User region retrieved successfully
Example response
{
"status": "success",
"status_code": 200,
"message": "User region retrieved successfully",
"data": {
"id": "019109d8-a5a6-7f4d-a3ec-ee3bd0383ee5",
"userId": "019109d8-a5a6-7f47-8cc5-d9b3f62293f8",
"region_id": "019109d8-a5a6-7f4e-84a2-9e9f0eed380b",
"timezone_id": "019109d8-a5a6-7f50-a8b4-47512d0150c9",
"language_id": "019109d8-a5a6-7f4f-8824-0daa5e00a9bd",
"created_at": "2024-07-31T18:31:18.832037+01:00",
"updated_at": "2024-07-31T18:31:18.832037+01:00"
}
}Changes
- warning
removed the optional property
/from the response with the status - info
added the optional property
/to the response with the status
- warning
- warning
removed the optional property
/from the response with the status - info
added the optional property
/to the response with the status
- warning