v1

latestOpenAPI 3.0.0Cognigy Proprietary License2026-07-2239524.1 MB
Users

Assign a Project Role

Assigns a project role to a user.

post/v2.0/projects/{projectId}/members/{userId}/addroletomember

Path parameters

userIdstring required

The Id of the User

projectIdstring required

The unique identifier for the Project.

Headers

Accept'application/json' | 'application/hal+json' | 'application/xml' | 'text/xml' | 'text/csv'

The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.

Request body

role'agentAssistConfigAdmin' | 'agentAssistConfigViewer' | 'analytics' | 'basic' | 'connection_admin' | 'contact_profile_admin' | 'contact_profile_editor' | 'contact_profile_viewer' | 'conversationHistory' | 'developer' | 'endpoint_admin' | 'extension_admin' | 'extension_editor' | 'flowEditor' | 'flowNodeComments' | 'flowNodeDescriptions' | 'followUser' | 'handoverProviderAdmin' | 'intents' | 'data_privacy_admin' | 'data_privacy_editor' | 'data_privacy_viewer' | 'knowledgeAdmin' | 'large_language_model_admin,' | 'lexicon_admin' | 'lexicon_editor' | 'localesAdmin' | 'logs' | 'memberManager' | 'nlu_connector_admin' | 'packages_admin' | 'playbook_admin' | 'playbook_editor' | 'projectAdmin' | 'snapshot_admin' | 'tokenAdmin' | 'tokenEditor' | 'function_admin' | 'function_editor' | 'simulator_admin'

Response

User-role was added to the project member.