User Management Service
User Attribute Controller
The User Attribute Management service provides functionality to handle user-specific attributes, allowing for flexible user property management and querying.
User Attribute Operations
Update User Attribute PUT /api/v1/user-attribute/
| Resource URL | /api/v1/user-attribute/ |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Request Body
Example Request
Example Response
Delete User Attribute DELETE /api/v1/user-attribute/
| Resource URL | /api/v1/user-attribute/ |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| userId | integer | Yes | ID of the user |
| attributeId | integer | Yes | ID of the attribute to delete |
Example Request
Example Response
Get All User Attributes GET /api/v1/user-attribute
| Resource URL | /api/v1/user-attribute |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Example Request
Example Response
Create User Attribute POST /api/v1/user-attribute
| Resource URL | /api/v1/user-attribute |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Request Body
Example Request
Get User Attributes By User ID GET /api/v1/user-attribute/user
| Resource URL | /api/v1/user-attribute/user |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| userId | integer | Yes | ID of the user to get attributes for |
Example Request
Example Response
Get User Attribute By User ID and Attribute ID GET /api/v1/user-attribute/user/attribute
| Resource URL | /api/v1/user-attribute/user/attribute |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| userId | integer | Yes | ID of the user |
| attributeId | integer | Yes | ID of the attribute |
Example Request
Example Response
HTTP Response Codes
| HTTP Code | Message |
|---|---|
| 200 | Success |
| 204 | No Content |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Invalid Input |
| 404 | Invalid or not found type |
All endpoints require proper authentication through Bearer token in the Authorization header. The token should be included in all API requests in the headers: