{ "openapi": "3.0.0", "info": { "title": "People API V1 Server", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Presents developer entrypoints to the People API features", "version": "1.0.0" }, "paths": { "/dx/api/people/v1/auth/login": { "get": { "summary": "Logs in a user and returns an authentication token.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Authenticates user credentials and provides an authentication token upon successful login. Note that API based login with credentials is not supported for OIDC-based authentication.\n If accessed via a browser, this endpoint will initiate the OIDC authentication flow (if configured) and then redirect back to the application landing page with the token.", "parameters": [ { "name": "userId", "type": "string", "required": false, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The user's unique identifier (GUID).", "in": "query" }, { "name": "password", "type": "string", "required": false, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The user password.", "in": "query" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Login successful." }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Bad request. The request is missing required parameters or is invalid." } }, "tags": [ "Authentication" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/auth/logout": { "get": { "summary": "Logs out the current user.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Terminates the current user session by invalidating the authentication token. \n This action logs the user out of the application but does not automatically log the user out of the OIDC provider.\n If accessed via a browser, this endpoint will initiate the OIDC logout flow, if configured, to log the user out of the OIDC provider as well. \n After completing the OIDC logout flow, the user is redirected back to the application login page.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Logout successful." }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Bad request. The request is missing required parameters or is invalid." } }, "tags": [ "Authentication" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/auth/profile": { "get": { "summary": "Retrieves the authenticated user's profile.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Returns profile details for the authenticated user, optionally including permissions based on the query parameter.", "parameters": [ { "name": "withAcls", "type": "boolean", "required": false, "default": false, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "If true, returns user with available permissions.", "in": "query" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User profile retrieval successful.", "schema": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "isGenerated": true, "isConstant": true, "required": false, "writeable": false, "isReadOnly": true, "allowEmpty": false }, "guid": { "type": "string", "required": true, "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "required": false, "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "required": true, "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "required": true, "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "required": true, "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "required": true, "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "required": true, "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "required": true, "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "managerId": { "type": "string", "required": false, "example": "jdoe", "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User profile not found." } }, "tags": [ "Authentication" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/auth/token": { "post": { "summary": "Authenticates the user and maps the token to the current session.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Takes a valid JWT token, authenticates the user based on this token, and maps the authentication token to the user's current session.\n This is typically used in scenarios where the session needs to be established or updated based on a new token.", "parameters": [ { "name": "data", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "request body", "schema": { "type": "object", "required": [ "token" ], "properties": { "token": { "type": "string" } } }, "in": "body" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Token provided successfully." }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Bad request. The request is missing required parameters or is invalid." } }, "tags": [ "Authentication" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/auth/refresh": { "get": { "summary": "Refreshes the current auth token.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Renews the authentication token to extend the session. Requires a valid, non-expired refresh token.", "parameters": [ { "name": "data", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "request body", "schema": { "type": "object", "required": [ "refreshToken" ], "properties": { "refreshToken": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The refresh token to be renewed." } } }, "in": "body" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Token refreshed successfully." }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Bad request. The request is missing required parameters or is invalid." } }, "tags": [ "Authentication" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/acl": { "get": { "summary": "Retrieves the Access Control List (ACL) for the requesting user.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The ACL service allows users to retrieve their ACL, which defines the permissions and access levels granted to them for various resources within the system.\n This endpoint provides a mechanism for users or clients to view their current access rights, helping them understand which resources they can access and what actions they can perform.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "ACL retrieval successful.", "schema": { "type": "array", "items": { "type": "string" } }, "examples": { "exampleAcl": [ "view_own_profile", "view_any_profile", "search_profiles", "edit_own_profile", "view_network_contact_info" ] } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." } }, "tags": [ "Authentication" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/people": { "get": { "summary": "Get a list of people", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Retrieves a list of people with various scopes such as minified, essential, ui, or full.", "parameters": [ { "name": "criteria", "type": "string", "required": false, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Advanced search criteria, e.g. { organization: 'company', city: 'mycity' }", "in": "query" }, { "name": "scope", "type": "string", "required": false, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Defines the scope of data: minified, essential, ui, full", "in": "query" }, { "name": "p", "type": "integer", "required": false, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Page number for results pagination", "default": 1, "in": "query" }, { "name": "ps", "type": "integer", "required": false, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Page size for results pagination", "default": 20, "in": "query" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "People retrieved successfully.", "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "isGenerated": true, "isConstant": true, "required": false, "writeable": false, "isReadOnly": true, "allowEmpty": false }, "guid": { "type": "string", "required": true, "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "required": false, "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "required": true, "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "required": true, "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "required": true, "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "required": true, "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "required": true, "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "required": true, "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "managerId": { "type": "string", "required": false, "example": "jdoe", "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } } }, "examples": { "peopleFullExample": [ { "id": 1, "guid": "admin", "email": "admin@test.com", "organization": "company", "displayName": "Admin User", "firstName": "Admin", "lastName": "User", "phone": "+1234567890", "streetAddress": "Downtown", "city": "New York", "state": "NY", "zipCode": "10001", "country": "USA", "timeZone": "America/New_York", "language": "English", "role": "Technical Admin", "userState": "active", "created": "2024-04-08T09:57:00.052Z", "modified": "2024-04-08T09:57:00.052Z", "professionalSummary": "I am a technical admin.", "profilePhoto": "https://example.com/profile.jpg", "customFields": {} } ], "peopleMinifiedExample": [ { "id": 1, "guid": "admin", "email": "admin@test.com", "displayName": "Admin User" } ] } }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." } }, "tags": [ "People / Profiles" ], "security": [ { "ApiKeyAuth": [] } ] }, "post": { "summary": "Creates a new user profile with the provided profile attributes.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "This operation expects a complete user object containing all mandatory fields required for user creation.", "parameters": [ { "name": "data", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "request body", "schema": { "type": "object", "required": [ "guid", "email", "organization", "displayName", "country", "timeZone", "role" ], "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "isGenerated": true, "isConstant": true, "writeable": false, "isReadOnly": true, "allowEmpty": false }, "guid": { "type": "string", "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "managerId": { "type": "string", "example": "jdoe", "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } }, "in": "body" } ], "responses": { "201": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User created successfully.", "schema": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "isGenerated": true, "isConstant": true, "required": false, "writeable": false, "isReadOnly": true, "allowEmpty": false }, "guid": { "type": "string", "required": true, "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "required": false, "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "required": true, "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "required": true, "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "required": true, "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "required": true, "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "required": true, "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "required": true, "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "managerId": { "type": "string", "required": false, "example": "jdoe", "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } }, "examples": { "personExample": { "id": 1, "guid": "jdoe", "email": "john.doe@testdomain.com", "organization": "Acme Corporation", "displayName": "John Doe", "firstName": "John", "lastName": "Doe", "phone": "+1 626 902 8073", "streetAddress": "456 Fictional Lane", "city": "Sampleville", "state": "DemoState", "zipCode": "54321", "country": "America/New_York", "timeZone": "USA", "language": "English", "role": "Example Officer", "userState": "active", "created": "2020-01-01T00:00:00.000Z", "modified": "2020-01-01T00:00:00.000Z", "professionalSummary": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "profilePhoto": "https://www.gravatar.com/a", "customFields": {} } } }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to create a new user profile." } }, "tags": [ "People / Profiles" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/people/{id}": { "get": { "summary": "Get details of a person by their ID", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Retrieves details of a specific person by their ID. Supports different data scopes to retrieve minified, essential, ui, or full data.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the person to retrieve", "in": "path" }, { "name": "scope", "type": "string", "required": false, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Defines the scope of data: minified, essential, ui, full", "in": "query" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Person retrieved successfully.", "schema": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "isGenerated": true, "isConstant": true, "required": false, "writeable": false, "isReadOnly": true, "allowEmpty": false }, "guid": { "type": "string", "required": true, "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "required": false, "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "required": true, "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "required": true, "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "required": true, "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "required": true, "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "required": true, "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "required": true, "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "managerId": { "type": "string", "required": false, "example": "jdoe", "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } }, "examples": { "personFullExample": { "id": 1, "guid": "jdoe", "email": "john.doe@testdomain.com", "organization": "Acme Corporation", "displayName": "John Doe", "firstName": "John", "lastName": "Doe", "phone": "+1 626 902 8073", "streetAddress": "456 Fictional Lane", "city": "Sampleville", "state": "DemoState", "zipCode": "54321", "country": "America/New_York", "timeZone": "USA", "language": "English", "role": "Example Officer", "userState": "active", "created": "2020-01-01T00:00:00.000Z", "modified": "2020-01-01T00:00:00.000Z", "professionalSummary": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "profilePhoto": "https://www.gravatar.com/a", "customFields": {} }, "personMinifiedExample": { "id": 1, "guid": "jdoe", "email": "john.doe@testdomain.com", "displayName": "John Doe" } } }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Person not found." } }, "tags": [ "People / Profiles" ], "security": [ { "ApiKeyAuth": [] } ] }, "put": { "summary": "Updates an existing user.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "This operation expects a partial user object with the guid to identify the user and only the fields that need to be updated.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the user to update.", "in": "path" }, { "name": "data", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "request body", "schema": { "type": "object", "properties": { "guid": { "type": "string", "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } }, "in": "body" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User updated successfully.", "schema": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "isGenerated": true, "isConstant": true, "required": false, "writeable": false, "isReadOnly": true, "allowEmpty": false }, "guid": { "type": "string", "required": true, "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "required": false, "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "required": true, "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "required": true, "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "required": true, "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "required": true, "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "required": true, "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "required": true, "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "managerId": { "type": "string", "required": false, "example": "jdoe", "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } }, "examples": { "personExample": { "id": 1, "guid": "jdoe", "email": "john.doe@testdomain.com", "organization": "Acme Corporation", "displayName": "John Doe", "firstName": "John", "lastName": "Doe", "phone": "+1 626 902 8073", "streetAddress": "456 Fictional Lane", "city": "Sampleville", "state": "DemoState", "zipCode": "54321", "country": "America/New_York", "timeZone": "USA", "language": "English", "role": "Example Officer", "userState": "active", "created": "2020-01-01T00:00:00.000Z", "modified": "2020-01-01T00:00:00.000Z", "professionalSummary": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "profilePhoto": "https://www.gravatar.com/a", "dataSource": "LDAP", "customFields": {} } } }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to update the user profile." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User not found." } }, "tags": [ "People / Profiles" ], "security": [ { "ApiKeyAuth": [] } ] }, "delete": { "summary": "Deletes an existing user.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Deletes a user identified by their unique identifier (GUID).", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the user to delete.", "in": "path" } ], "responses": { "204": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User deleted successfully." }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to create a new user profile." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User not found." } }, "tags": [ "People / Profiles" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/people/{id}/state": { "put": { "summary": "Change the state of a user.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Changes the state of a user to either active or inactive.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the user to change the state.", "in": "path" }, { "name": "data", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "request body", "schema": { "type": "object", "required": [ "state" ], "properties": { "state": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The new state of the user: active or inactive." } } }, "in": "body" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User state changed successfully." }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to change the user state." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User not found." } }, "tags": [ "People / Profiles" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/people/{id}/ui": { "get": { "summary": "Navigate to the user profile page in the UI.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Navigates to the user profile page in the UI.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the user to navigate to.", "in": "path" } ], "responses": { "302": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Redirect to the user profile page." }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "User not found." } }, "tags": [ "People / Profiles" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/schema": { "get": { "summary": "Retrieves the schema for person profiles.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Provides extended information about the shape of user profiles and their attributes. \n This includes metadata such as attribute behavior, default values, whether attributes are required, read-only, searchable, should be hidden from the UI, the type of the value, and more. \n It can be used for dynamic form generation or validating user profile data client-side.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Schema retrieval successful.", "schema": { "type": "object", "additionalProperties": { "type": "object", "properties": { "required": { "type": "boolean", "example": false }, "example": { "type": "string", "example": "exampleValue" }, "length": { "type": "number", "example": 256 }, "isReadOnly": { "type": "boolean", "example": false }, "writeable": { "type": "boolean", "example": true }, "allowEmpty": { "type": "boolean", "example": true }, "isHidden": { "type": "boolean", "example": false }, "isConstant": { "type": "boolean", "example": false }, "isGenerated": { "type": "boolean", "example": true } } } }, "examples": { "peopleSchemaExample": { "id": { "type": "number", "example": 1, "isHidden": true, "isGenerated": true, "isConstant": true, "required": false, "writeable": false, "isReadOnly": true, "allowEmpty": false }, "guid": { "type": "string", "required": true, "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "required": false, "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "required": true, "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "required": true, "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "required": true, "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "required": true, "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "required": true, "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "required": true, "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "managerId": { "type": "string", "required": false, "example": "jdoe", "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." } }, "tags": [ "People / Schema" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/customFields/schema": { "get": { "summary": "Retrieves the schema for custom fields.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Provides the schema definition for custom fields, including metadata such as field type, default values, and validation rules.\n It can be used for dynamic form generation and client-side validation.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Custom fields schema retrieved successfully.", "schema": { "type": "object", "additionalProperties": { "type": "object", "required": [ "type", "required", "example" ], "properties": { "type": { "type": "string", "example": "string" }, "required": { "type": "boolean", "example": true }, "example": { "type": "any", "example": "companyId" } } } }, "examples": { "exampleCustomFieldsSchema": { "key": { "type": "string", "required": true, "example": "companyId" }, "type": { "type": "string", "required": true, "example": "string" }, "isRequired": { "type": "boolean", "example": true, "required": false }, "isReadOnly": { "type": "boolean", "example": false, "required": false }, "order": { "type": "number", "example": 10, "required": false }, "isHidden": { "type": "boolean", "example": false, "required": false }, "isSearchable": { "type": "boolean", "example": true, "required": false }, "defaultValue": { "type": "string", "example": 12345, "required": false }, "example": { "type": "string", "example": 12345, "required": false }, "length": { "type": "number", "example": 256, "required": false } } } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." } }, "tags": [ "People / Custom fields" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/customFields": { "get": { "summary": "Retrieves all custom fields configured in the system.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Fetches a list of all custom fields that extend the base user schema. These fields are configured by administrators and can be used for flexible form generation and validation.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Custom fields retrieved successfully.", "schema": { "type": "array", "items": { "key": { "type": "string", "required": true, "example": "companyId" }, "type": { "type": "string", "required": true, "example": "string" }, "isRequired": { "type": "boolean", "example": "true", "required": false }, "isReadOnly": { "type": "boolean", "example": "false", "required": false }, "order": { "type": "number", "example": 10, "required": false }, "isHidden": { "type": "boolean", "example": "false", "required": false }, "isSearchable": { "type": "boolean", "example": "true", "required": false }, "defaultValue": { "type": "string", "example": "12345", "required": false }, "example": { "type": "string", "example": "12345", "required": false }, "length": { "type": "number", "example": 256, "required": false } } }, "examples": { "exampleCustomFields": [ { "key": "companyId", "type": "string", "isRequired": false, "isReadOnly": false, "order": 0, "isHidden": false, "isSearchable": false, "defaultValue": "12345", "example": "12345", "created": "2024-04-09T07:36:51.772Z", "modified": "2024-04-09T07:36:51.772Z", "length": 256, "id": 1 } ] } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." } }, "tags": [ "People / Custom fields" ], "security": [ { "ApiKeyAuth": [] } ] }, "post": { "summary": "Creates a new custom field.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Allows administrators to add a new custom field to the system, extending the base user schema with additional, configurable attributes.", "parameters": [ { "name": "data", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "request body", "schema": { "type": "object", "required": [ "key", "type" ], "properties": { "key": { "type": "string", "example": "companyId" }, "type": { "type": "string", "example": "string" }, "isRequired": { "type": "boolean", "example": "true" }, "isReadOnly": { "type": "boolean", "example": "false" }, "order": { "type": "number", "example": 10 }, "isHidden": { "type": "boolean", "example": "false" }, "isSearchable": { "type": "boolean", "example": "true" }, "defaultValue": { "type": "string", "example": "12345" }, "example": { "type": "string", "example": "12345" }, "length": { "type": "number", "example": 256 } } }, "in": "body" } ], "responses": { "201": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Custom field created successfully.", "schema": { "type": "object", "properties": { "key": { "type": "string", "required": true, "example": "companyId" }, "type": { "type": "string", "required": true, "example": "string" }, "isRequired": { "type": "boolean", "example": "true", "required": false }, "isReadOnly": { "type": "boolean", "example": "false", "required": false }, "order": { "type": "number", "example": 10, "required": false }, "isHidden": { "type": "boolean", "example": "false", "required": false }, "isSearchable": { "type": "boolean", "example": "true", "required": false }, "defaultValue": { "type": "string", "example": "12345", "required": false }, "example": { "type": "string", "example": "12345", "required": false }, "length": { "type": "number", "example": 256, "required": false } } }, "examples": { "exampleCustomField": { "key": "companyId", "type": "string", "isRequired": false, "isReadOnly": false, "order": 0, "isHidden": false, "isSearchable": false, "defaultValue": "12345", "example": "12345", "created": "2024-04-09T07:36:51.772Z", "modified": "2024-04-09T07:36:51.772Z", "length": 256, "id": 1 } } }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Bad request. The request is missing required information or is invalid." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to create custom fields." }, "409": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Conflict. A custom field with the same key already exists." } }, "tags": [ "People / Custom fields" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/customFields/{key}": { "get": { "summary": "Retrieves a specific custom field by its key.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Fetches the details of a single custom field by its unique key. This endpoint is useful for retrieving the configuration and metadata for individual custom fields.", "parameters": [ { "name": "key", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique key of the custom field to retrieve.", "in": "path" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Custom field retrieved successfully.", "schema": { "type": "object", "properties": { "key": { "type": "string", "required": true, "example": "companyId" }, "type": { "type": "string", "required": true, "example": "string" }, "isRequired": { "type": "boolean", "example": "true", "required": false }, "isReadOnly": { "type": "boolean", "example": "false", "required": false }, "order": { "type": "number", "example": 10, "required": false }, "isHidden": { "type": "boolean", "example": "false", "required": false }, "isSearchable": { "type": "boolean", "example": "true", "required": false }, "defaultValue": { "type": "string", "example": "12345", "required": false }, "example": { "type": "string", "example": "12345", "required": false }, "length": { "type": "number", "example": 256, "required": false } } }, "examples": { "exampleCustomField": { "key": "companyId", "type": "string", "isRequired": false, "isReadOnly": false, "order": 0, "isHidden": false, "isSearchable": false, "defaultValue": "12345", "example": "12345", "created": "2024-04-09T07:36:51.772Z", "modified": "2024-04-09T07:36:51.772Z", "length": 256, "id": 1 } } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Custom field not found." } }, "tags": [ "People / Custom fields" ], "security": [ { "ApiKeyAuth": [] } ] }, "put": { "summary": "Updates an existing custom field.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Allows administrators to update the configuration and metadata of an existing custom field by its unique key.", "parameters": [ { "name": "key", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique key of the custom field to update.", "in": "path" }, { "name": "data", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "request body", "schema": { "type": "object", "required": [ "key", "type" ], "properties": { "key": { "type": "string", "example": "companyId" }, "type": { "type": "string", "example": "string" }, "isRequired": { "type": "boolean", "example": "true" }, "isReadOnly": { "type": "boolean", "example": "false" }, "order": { "type": "number", "example": 10 }, "isHidden": { "type": "boolean", "example": "false" }, "isSearchable": { "type": "boolean", "example": "true" }, "defaultValue": { "type": "string", "example": "12345" }, "example": { "type": "string", "example": "12345" }, "length": { "type": "number", "example": 256 } } }, "in": "body" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Custom field updated successfully.", "schema": { "type": "object", "properties": { "key": { "type": "string", "required": true, "example": "companyId" }, "type": { "type": "string", "required": true, "example": "string" }, "isRequired": { "type": "boolean", "example": "true", "required": false }, "isReadOnly": { "type": "boolean", "example": "false", "required": false }, "order": { "type": "number", "example": 10, "required": false }, "isHidden": { "type": "boolean", "example": "false", "required": false }, "isSearchable": { "type": "boolean", "example": "true", "required": false }, "defaultValue": { "type": "string", "example": "12345", "required": false }, "example": { "type": "string", "example": "12345", "required": false }, "length": { "type": "number", "example": 256, "required": false } } }, "examples": { "exampleCustomField": { "key": "companyId", "type": "string", "isRequired": false, "isReadOnly": false, "order": 0, "isHidden": false, "isSearchable": false, "defaultValue": "12345", "example": "12345", "created": "2024-04-09T07:36:51.772Z", "modified": "2024-04-09T07:36:51.772Z", "length": 256, "id": 1 } } }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Bad request. The request is missing required information or is invalid." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to update the custom field." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Custom field not found." } }, "tags": [ "People / Custom fields" ], "security": [ { "ApiKeyAuth": [] } ] }, "delete": { "summary": "Deletes a custom field.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Allows administrators to remove an existing custom field from the system by its unique key, effectively reducing the extensions made to the base user schema.", "parameters": [ { "name": "key", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique key of the custom field to delete.", "in": "path" } ], "responses": { "204": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Custom field deleted successfully." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to delete the custom field." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Custom field not found." } }, "tags": [ "People / Custom fields" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/image/profile/{id}": { "get": { "summary": "Retrieves a person's profile image.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Fetches the profile image for a specified user. Requires user authentication.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the user whose profile image is being requested.", "in": "path" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Profile image retrieved successfully.", "content": { "image/png": { "schema": { "type": "string", "format": "binary", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Binary data of the image." } }, "image/jpeg": { "schema": { "type": "string", "format": "binary", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Binary data of the image." } }, "image/gif": { "schema": { "type": "string", "format": "binary", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Binary data of the image." } } } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Profile image not found." } }, "tags": [ "People / Images and media" ], "security": [ { "ApiKeyAuth": [] } ] }, "post": { "consumes": [ "multipart/form-data" ], "summary": "Uploads a profile image for the authenticated user.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Allows an authenticated user to upload a new profile image. The image file size is limited, and the upload should be done as form data. Requires permission to edit the profile.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the user whose profile image is to be uploaded.", "in": "path" }, { "name": "file", "type": "file", "required": "true", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The profile image to upload.", "in": "formData" } ], "responses": { "201": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Profile image uploaded successfully." }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid file format or size exceeds the limit." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to upload a profile image for this user." } }, "tags": [ "People / Images and media" ], "security": [ { "ApiKeyAuth": [] } ] }, "delete": { "summary": "Deletes a person's profile image.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Allows for the deletion of a specified user's profile image. Requires user authentication and permission to edit the profile.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the user whose profile image is to be deleted.", "in": "path" } ], "responses": { "204": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Profile image removed successfully." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to delete the profile image for this user." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Profile image not found." } }, "tags": [ "People / Images and media" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/tags/profile/{id}": { "get": { "summary": "Get all tags for a specific person", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Retrieves all tags for a specific person based on the provided person ID.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the person to retrieve tags for", "in": "path" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Tags retrieved successfully.", "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique and generated identifier of the tag" }, "name": { "type": "string", "example": "mytag", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The name of the tag" }, "category": { "type": "string", "example": "tags", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The category of the tag. Currently set to 'tags'." } } } } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Person not found." } }, "tags": [ "People / Tags" ], "security": [ { "ApiKeyAuth": [] } ] }, "post": { "summary": "Creates a new tag for a specific person", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Creates and endorses a new tag for a specific person based on the provided person ID. The tag category is currently not in use and can be ignored.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the person to create a tag for", "in": "path" }, { "name": "data", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "request body", "schema": { "type": "object", "properties": { "name": { "type": "string", "example": "mytag", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The name of the tag" }, "category": { "type": "string", "example": "tags", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The category of the tag. Currently set to 'tags'." } } }, "in": "body" } ], "responses": { "201": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Tag created successfully.", "schema": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique and generated identifier of the tag" }, "name": { "type": "string", "example": "mytag", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The name of the tag" }, "category": { "type": "string", "example": "tags", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The category of the tag. Currently set to 'tags'." } } } }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Bad request." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "409": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Conflict. The tag already exists or has already been endorsed." } }, "tags": [ "People / Tags" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/tags/profile/{id}/{tagId}": { "delete": { "summary": "Deletes a tag for a specific person", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Deletes a tag for a specific person based on the provided person ID and tag ID. \n Only tags can be deleted that I created and that have not been endorsed by others, or that are created against my profile.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the person to delete a tag for", "in": "path" }, { "name": "tagId", "type": "number", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier of the tag to delete", "in": "path" } ], "responses": { "204": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Tag deleted successfully." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Tag not found." } }, "tags": [ "People / Tags" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/tags/profile/{id}/{tagId}/endorse": { "post": { "summary": "Endorse a tag for a specific person", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Endorses a tag for a specific person based on the provided person ID and tag ID.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the person to endorse a tag for", "in": "path" }, { "name": "tagId", "type": "number", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier of the tag to endorse", "in": "path" } ], "responses": { "201": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Tag endorsed successfully." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Tag not found." }, "409": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Conflict. The tag has already been endorsed by you." } }, "tags": [ "People / Tags" ], "security": [ { "ApiKeyAuth": [] } ] }, "delete": { "summary": "Remove endorsement of a tag for a specific person", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Removes the endorsement of a tag for a specific person based on the provided person ID and tag ID. If this action removes the last endorsement, the tag is deleted.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the person to remove endorsement for", "in": "path" }, { "name": "tagId", "type": "number", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier of the tag to remove endorsement", "in": "path" } ], "responses": { "202": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Tag endorsement removed successfully." }, "204": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Tag endorsement removed successfully. Tag has been deleted." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Tag not found." }, "409": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Conflict. The tag has not been endorsed." } }, "tags": [ "People / Tags" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/tags/typeahead/{search}": { "get": { "summary": "Get tag typeahead", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Retrieves a list of tags that match the search term.", "parameters": [ { "name": "search", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The search term to match", "in": "path" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "success" } }, "tags": [ "People / Tags" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/tags/popular": { "get": { "summary": "Get popular tags", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Retrieves a list of popular tags. Popular tags are tags that have been endorsed frequently.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "success" } }, "tags": [ "People / Tags" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/search": { "get": { "summary": "Searches for people based on a query.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Performs a search across people profiles based on the provided query string. Supports pagination and case sensitivity options, allowing for flexible search configurations.", "parameters": [ { "name": "q", "type": "string", "required": false, "default": "", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Search term. The query to match against people profiles.", "in": "query" }, { "name": "p", "type": "integer", "required": false, "default": 1, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Page number. Specifies the page of results to return.", "in": "query" }, { "name": "ps", "type": "integer", "required": false, "default": 20, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Page size. The number of results to return per page.", "in": "query" }, { "name": "cs", "type": "boolean", "required": false, "default": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Case sensitivity flag. When true, the search is case-sensitive.", "in": "query" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Search successful. Returns matched profiles." }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "500": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Internal server error." } }, "tags": [ "People / Search" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/people/{id}/privacy/data": { "get": { "summary": "Get privacy data for a specific person.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Retrieves the privacy data for a specific person based on the provided person ID. This includes the PII data, authored content, relationships and other privacy-sensitive information.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the person to retrieve", "in": "path" }, { "name": "scope", "type": "string", "required": false, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Defines the scope of data: profile, content, references, relationships, or full", "in": "query" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "success" } }, "tags": [ "People / Privacy" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/people/{id}/privacy/anonymize": { "post": { "summary": "Anonymize a specific person.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Anonymizes a specific person based on the provided person ID. This includes the PII data, authored content, relationships and other privacy-sensitive information.", "parameters": [ { "name": "id", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The unique identifier (GUID) of the person to anonymize", "in": "path" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "success" } }, "tags": [ "People / Privacy" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/user-directories": { "get": { "summary": "Retrieves all available and configured user directories.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Fetches a list of all user directories configured in the system. Each directory is detailed with its type, operational status, and other relevant metadata.\n This endpoint is useful for administrative purposes, helping to understand and manage the integration of different user directory services.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Successfully retrieved the list of user directories.", "schema": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The type of the user directory." }, "name": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The name of the user directory." }, "status": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The operational status of the user directory." }, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "A brief description of the user directory." }, "url": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The connection URL to the user directory." }, "averageResponseTime": { "type": "number", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The average response time of queries to the user directory, measured in milliseconds." } }, "example": { "type": "LDAP", "name": "LDAP", "status": "active", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "LDAP user directory", "url": "ldap://localhost:389", "averageResponseTime": 0 } } } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." } }, "tags": [ "Federation / User directories" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/user-directories/users": { "get": { "summary": "Retrieves users from all connected user directories.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Fetches all user profiles from configured user directories and consolidates the information to provide detailed profiles.\n This endpoint is useful for obtaining a unified view of users across different directory services, including LDAP and custom data sources.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Successfully retrieved and consolidated user profiles from all directories.", "schema": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "isGenerated": true, "isConstant": true, "required": false, "writeable": false, "isReadOnly": true, "allowEmpty": false }, "guid": { "type": "string", "required": true, "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "required": false, "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "required": true, "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "required": true, "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "required": true, "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "required": true, "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "required": true, "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "required": true, "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "managerId": { "type": "string", "required": false, "example": "jdoe", "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } } }, "examples": { "usersFromDirectoriesExample": [ { "id": 1, "guid": "admin", "email": "admin@test.com", "organization": "company", "displayName": "Admin User", "firstName": "Admin", "lastName": "User", "phone": "+1234567890", "streetAddress": "Downtown", "city": "New York", "state": "NY", "zipCode": "10001", "country": "USA", "timeZone": "America/New_York", "language": "English", "role": "Technical Admin", "userState": "active", "created": "2024-04-08T09:57:00.052Z", "modified": "2024-04-08T09:57:00.052Z", "professionalSummary": "I am a technical admin.", "profilePhoto": "https://example.com/profile.jpg", "customFields": {} } ] } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." } }, "tags": [ "Federation / User directories" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/user-directories/users/{guid}": { "get": { "summary": "Retrieves and consolidates the profile of a single user from all user directories.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Fetches detailed profile information for a specific user, identified by their GUID, from all configured user directories, including LDAP, Active Directory, and custom data sources.\n The consolidated profile provides a comprehensive view of the user's details as aggregated across these directories.", "parameters": [ { "name": "guid", "type": "string", "required": true, "in": "path" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Successfully retrieved and consolidated the user profile from all directories.", "schema": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "isHidden": true, "isGenerated": true, "isConstant": true, "required": false, "writeable": false, "isReadOnly": true, "allowEmpty": false }, "guid": { "type": "string", "required": true, "example": "jdoe", "isConstant": true, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false }, "dn": { "type": "string", "required": false, "example": "cn=jdoe,ou=users,dc=company,dc=com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "email": { "type": "string", "required": true, "example": "john.doe@testdomain.com", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "organization": { "type": "string", "required": true, "example": "Acme Corporation", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "displayName": { "type": "string", "required": true, "example": "John Doe", "length": 256, "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "firstName": { "type": "string", "allowEmpty": true, "example": "John", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "lastName": { "type": "string", "allowEmpty": true, "example": "Doe", "length": 256, "required": false, "writeable": false, "isReadOnly": true, "isHidden": false, "isGenerated": false, "isConstant": false }, "phone": { "type": "string", "allowEmpty": true, "example": "+1 626 902 8073 Ext. 1234", "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "streetAddress": { "type": "string", "allowEmpty": true, "example": "456 Fictional Lane", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "city": { "type": "string", "allowEmpty": true, "example": "Sampleville", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "state": { "type": "string", "allowEmpty": true, "example": "DemoState", "length": 256, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "zipCode": { "type": "string", "allowEmpty": true, "example": "54321", "length": 12, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "country": { "type": "string", "required": true, "example": "America/New_York", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "timeZone": { "type": "string", "required": true, "example": "USA", "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "language": { "type": "string", "example": "English", "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "role": { "type": "string", "required": true, "example": "Example Officer", "length": 256, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "userState": { "type": "string", "example": "active", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "managerId": { "type": "string", "required": false, "example": "jdoe", "writeable": false, "isReadOnly": true, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "created": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "modified": { "type": "date", "example": "2020-01-01T00:00:00.000Z", "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isConstant": false }, "professionalSummary": { "type": "richtext", "example": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "length": 10000, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "profilePhoto": { "type": "string", "example": "https://www.gravatar.com/a", "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false }, "customFields": { "type": "object", "additionalProperties": { "type": "string" }, "example": { "companyId": "12345" }, "allowEmpty": true, "required": false, "writeable": true, "isReadOnly": false, "isHidden": false, "isGenerated": false, "isConstant": false }, "dataSource": { "type": "string", "example": "LDAP", "isHidden": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isGenerated": false, "isConstant": false }, "isAnonymized": { "type": "boolean", "example": false, "isHidden": true, "isGenerated": true, "required": false, "writeable": true, "isReadOnly": false, "allowEmpty": false, "isConstant": false } } }, "examples": { "userFromDirectoriesExample": { "id": 1, "guid": "jdoe", "email": "john.doe@testdomain.com", "organization": "Acme Corporation", "displayName": "John Doe", "firstName": "John", "lastName": "Doe", "phone": "+1 626 902 8073", "streetAddress": "456 Fictional Lane", "city": "Sampleville", "state": "DemoState", "zipCode": "54321", "country": "America/New_York", "timeZone": "USA", "language": "English", "role": "Example Officer", "userState": "active", "created": "2020-01-01T00:00:00.000Z", "modified": "2020-01-01T00:00:00.000Z", "professionalSummary": "A skilled professional known for pioneering innovative solutions in diverse scenarios.", "profilePhoto": "https://www.gravatar.com/a", "customFields": {} } } }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "404": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Person not found." } }, "tags": [ "Federation / User directories" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/user-directories/sync": { "post": { "summary": "Manually triggers synchronization of users from directories.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Initiates a manual synchronization process for all users across configured user directories, comparing them with locally stored versions and updating as necessary.\n This operation can create, update, or clean up user profiles based on the comparison and may relay updates to other services or systems.\n Note: This endpoint is intended for ad-hoc manual synchronization or testing purposes and executes on a scheduled configuration at the service level.\n Due to its intensive resource usage, it should be used with caution.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Synchronization process completed successfully.", "schema": { "type": "object", "properties": { "processed": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Total number of user profiles processed during synchronization." }, "created": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Number of user profiles created." }, "updated": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Number of user profiles updated." }, "skipped": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Number of user profiles skipped." }, "errors": { "type": "array", "items": { "type": "string" }, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "List of errors encountered during the synchronization process, if any." }, "startedAt": { "type": "string", "format": "date-time", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Timestamp marking the start of the synchronization process." }, "finishedAt": { "type": "string", "format": "date-time", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Timestamp marking the end of the synchronization process." }, "timeLapsed": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Total time taken for the synchronization process, in milliseconds." } }, "example": { "processed": 542, "created": 32, "updated": 114, "skipped": 396, "errors": [], "startedAt": "2024-04-09T20:38:05.990Z", "finishedAt": "2024-04-09T20:38:06.625Z", "timeLapsed": 735 } } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The user is not authenticated or lacks admin privileges." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to create a new user profile." }, "409": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Conflict. A synchronization process is already in progress. Please wait for the current process to complete." } }, "tags": [ "Federation / User directories" ], "security": [ { "ApiKeyAuth": [] } ] }, "delete": { "summary": "Terminates the synchronization process", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Terminates the synchronization process and allows the synchronization process to be triggered again.\n NOTE - This operation should be used with caution, as it may result in data inconsistencies or conflicts if the synchronization process is running or has not completed successfully.\n This can be used to manually clear a locked, stuck or accidental synchronization process", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Successfully deleted the synchronization lock." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized" }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden" } }, "tags": [ "Federation / User directories" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/config": { "get": { "summary": "Retrieves application configuration settings.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Provides details on configuration properties from the backend relevant to the frontend, including integration modes and authentication mechanisms.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Configuration retrieval successful.", "schema": { "type": "object", "properties": { "key": { "type": "string" } } }, "examples": { "exampleConfig": { "key": "exampleValue" } } } }, "tags": [ "Utils" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/nls": { "get": { "summary": "Retrieves custom NLS data in the user's preferred language.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Fetches customized NLS (Natural Language Support) JSON files from the backend. These files are intended to be merged with static translations on the client side, \n allowing for the customization and overriding of translation strings as needed.\n The service automatically detects the user's preferred language or accepts a language parameter to specify the desired language.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "NLS retrieval successful.", "schema": { "type": "object", "properties": { "^[a-z]{2}$": { "type": "object", "additionalProperties": { "type": "string" } } } }, "examples": { "exampleNls": { "en": { "companyId": "Company ID" } } } }, "500": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Internal server error. The server encountered errors while attempting to retrieve the NLS data." } }, "tags": [ "Utils" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/errors/{errorCode}": { "get": { "summary": "Retrieves detailed error data related to the error code.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "This endpoint is used to retrieve detailed error data related to the error code. \n The endpoint is referenced within error responses for other API endpoints to provide more information about the error.\n This endpoint provides a JSON based response and can thus be used for programmatic error handling, but can also provide plain text error messages for human readability and usage in UI.", "parameters": [ { "name": "errorCode", "type": "string", "required": true, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The error code to retrieve detailed error data for.", "in": "path" }, { "name": "format", "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "The format of the response. Can be either \"json\" or \"text\". Default is \"json\".", "in": "query" } ], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Error retrieval successful.", "schema": { "type": "object", "properties": { "type": { "type": "string" }, "message": { "type": "string" }, "status": { "type": "number" }, "detail": { "type": "string" }, "reason": { "type": "string" }, "errorCode": { "type": "string" }, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": { "type": "string" }, "context": { "type": "object" } } }, "examples": { "exampleError": { "type": "http://localhost:3000/dx/api/people/v1/errors/http.bad.request", "status": 400, "detail": "The request was invalid or cannot be served. Check the request format and parameters.", "reason": "Bad Request", "errorCode": "http.bad.request", "instance": "", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "This error typically occurs when the request does not meet the API specifications or includes invalid parameters, such as incorrect syntax, missing required fields, or incompatible data types. Verify that all parameters are correct and that the request structure adheres to the expected format as outlined in the API documentation. Reformat the request as needed and resubmit." } } }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." } }, "tags": [ "Utils" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/probes/ping": { "get": { "summary": "Checks if the service is responsive.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "A simple ping operation that checks the service's responsiveness. It is expected to return a success status if the service is running.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Service is responsive and running." }, "500": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Server error or service is not responsive." } }, "tags": [ "Probes" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/probes/ready": { "get": { "summary": "Checks if the service is ready to accept requests.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Determines if the service has completed its initialization and is ready to accept traffic. Useful for deployment scenarios to ensure traffic is only routed to ready instances.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Service is ready and able to accept requests." }, "500": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Service is not ready or has encountered an initialization error." } }, "tags": [ "Probes" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/probes/health": { "get": { "summary": "Checks the liveness/health of the service.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Assesses the health of the service, ensuring it is in a healthy state to process requests.\n It can trigger auto-recovery actions like restarts in deployment environments if the service is found to be unhealthy.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Service is alive and healthy." }, "500": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Service is unhealthy or has encountered a problem affecting its operations." } }, "tags": [ "Probes" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/probes/startup": { "get": { "summary": "Checks the startup of the service.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Assesses the stratup of the service, ensuring the service will not get cleaned up before startup finishes.\n This is called only in the begiiing phase in the livecycle of the service.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Service has started up now." }, "500": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Service is still starting up." } }, "tags": [ "Probes" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/search/index/pending": { "get": { "summary": "Get details of all pending and failed user index operations", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "This endpoint allows an administrator to view the details of all pending and failed user index operations.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "List of pending and failed user index operations", "schema": { "type": "object", "properties": { "status": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Status of the response", "example": "success" }, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Description of the response", "example": "List of pending and failed user index operations" }, "count": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Total count of pending and failed user index operations", "example": 110 }, "data": { "type": "array", "items": { "type": "object", "properties": { "guid": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "GUID of the user", "example": "tuser1" }, "operation": { "type": "string", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Operation type", "example": "create" } } } } }, "example": { "status": "success", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "List of pending and failed user index operations", "count": 2, "data": [ { "guid": "tuser1", "operation": "create" }, { "guid": "tuser2", "operation": "create" } ] } } }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." } }, "tags": [ "Search Re-Index" ], "security": [ { "ApiKeyAuth": [] } ] }, "post": { "summary": "Manually retry pending and failed user index operations", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "This endpoint allows an administrator to manually trigger partial re-index operation for all failed users in the system.\n It is useful for ensuring that the search index is up-to-date with the latest user information.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Re-Indexing process completed successfully", "schema": { "type": "object", "properties": { "processed": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Total number of user profiles processed during re-indexing." }, "success": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Number of user profiles successfully re-indexed." }, "failed": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Number of user profiles that failed to re-index." }, "errors": { "type": "array", "items": { "type": "string" }, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "List of errors encountered during the re-indexing process, if any." }, "startedAt": { "type": "string", "format": "date-time", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Timestamp marking the start of the re-indexing process." }, "finishedAt": { "type": "string", "format": "date-time", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Timestamp marking the end of the re-indexing process." } }, "example": { "processed": 105, "success": 105, "failed": 0, "errors": [], "startedAt": "2025-02-07T14:43:29.609Z", "finishedAt": "2025-02-07T14:43:29.609Z" } } }, "207": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Re-Indexing process completed with some errors" }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to initiate index." }, "409": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Conflict. Index process is already in progress. Please wait for the current process to complete." }, "500": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Re-Indexing process failed with errors." }, "503": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Service Unavailable" } }, "tags": [ "Search Re-Index" ], "security": [ { "ApiKeyAuth": [] } ] } }, "/dx/api/people/v1/search/index": { "post": { "summary": "Manually triggers full indexing for all users in the people database.", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "This endpoint allows an administrator to manually trigger a full index operation for all users in the system.\n It ensures that the search index is up-to-date with the latest user information.", "parameters": [], "responses": { "200": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Re-Indexing process completed successfully", "schema": { "type": "object", "properties": { "processed": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Total number of user profiles processed during re-indexing." }, "success": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Number of user profiles successfully re-indexed." }, "failed": { "type": "integer", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Number of user profiles that failed to re-index." }, "errors": { "type": "array", "items": { "type": "string" }, "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "List of errors encountered during the re-indexing process, if any." }, "startedAt": { "type": "string", "format": "date-time", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Timestamp marking the start of the re-indexing process." }, "finishedAt": { "type": "string", "format": "date-time", "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Timestamp marking the end of the re-indexing process." } }, "example": { "processed": 105, "success": 105, "failed": 0, "errors": [], "startedAt": "2025-02-07T14:43:29.609Z", "finishedAt": "2025-02-07T14:43:29.609Z" } } }, "207": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Re-Indexing process completed with some errors" }, "400": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Invalid request parameters." }, "401": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Unauthorized. The request is missing a valid session." }, "403": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Forbidden. The user does not have permission to initiate index." }, "409": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Conflict. Index process is already in progress. Please wait for the current process to complete." }, "500": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Re-Indexing process failed with errors." }, "503": { "x-logo":{"url":"../DX_logo.svg","backgroundColor":"#F2F4F5","altText":"HCL_Digital_Experience"},"description": "Service Unavailable" } }, "tags": [ "Search Re-Index" ], "security": [ { "ApiKeyAuth": [] } ] } } }, "responses": {}, "definitions": {}, "tags": [], "swagger": "2.0", "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "in": "header", "name": "Authorization" } } }