ProfileField
ProfileField Service
Web service endpoints for providing metadata about user profile.
Since: 3.13
Create Profile Field
POST /admin/profileFields
Create a new profile field with specified characteristics, and return an entity representing the newly created profile field.
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to include in the returned entity |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
201 (Created) | Request was successful |
400 (Bad Request) | An input field is malformed |
409 (Conflict) | The new profile field would conflict with system restrictions (such as two profile fields with the same name) |
403 (Forbidden) | You are not allowed to perform this operation |
Destroy Profile Field
DELETE /admin/profileFields/{profileFieldID}
Delete the specified profile field.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
profileFieldID | String | true | ID of the profile field to be deleted |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | An input field is malformed |
403 (Forbidden) | You are not allowed to access the specified place |
404 (Not Found) | The specified place does not exist |
Get Profile Field
GET /admin/profileFields/{profileFieldID}
Return the specified profile field with the specified fields.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
profileFieldID | String | true | ID of the profile field to be returned |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be returned |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is malformed |
404 (Not Found) | The specified profile field does not exist |
Get Profile Field Name
GET /admin/profileFields/@name
Return the name profile field with the specified fields.
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be returned |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
Since: 3.14
Get Profile Fields
GET /admin/profileFields
Return a paginated list of profile fields. The list will include profile fields that can be updated, deleted or are read-only.
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
startIndex | Integer | false | Zero-relative index of the first matching profile field to be returned |
count | Integer | false | Maximum number of profile fields to be returned |
fields | String | false | Fields to be returned on each profile field |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is malformed |
Update Order
PUT /admin/profileFields/order
Update the order in which the profile fields should appear in the UI. The received JSON array must contain the URI of all profile fields. The order of the elements in the array determine the order in which the profile fields should appear in the UI.
Takes:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is malformed |
403 (Forbidden) | You are not allowed to perform this operation |
404 (Not Found) | One or more of the specified profile fields do not exist |
Update Profile Field
PUT /admin/profileFields/{profileFieldID}
Update an existing profile field with specified characteristics.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
profileFieldID | String | true | ID of the profile field to be updated |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to include in the returned entity |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
400 (Bad Request) | An input field is malformed |
403 (Forbidden) | You are not allowed to access the specified profile field or to make the requested change |
404 (Not Found) | The specified profile field does not exist |
Update Profile Field NAme
PUT /admin/profileFields/@name
Update the name profile field with specified characteristics.
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to include in the returned entity |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
400 (Bad Request) | An input field is malformed |
403 (Forbidden) | You are not allowed to access the specified profile field or to make the requested change |
404 (Not Found) | The specified profile field does not exist |