agents
channels.twilio.numbers
agents.test
conversations
data_sources
events
incidents
insights
insights.folders
insights.workflows
insights.tools
custom_messages
permissions
prompts
session_labels
sessions.transcript
sessions.full-summary
sessions.latency
session_debug
channels.targets
directory
dashboards
outbound.batches
- GETList Outbound Communication Batches
- POSTCreate Outbound Communication Batch
- GETGet Outbound Communication Batch
- PUTUpdate Outbound Communication Batch
- DELDelete Outbound Communication Batch
- POSTUpload Outbound Communication Batch
- GETFetch Outbound Communication Batch Results
- POSTCreate Outbound Communication Request
- POSTDelete Requests By List Of Reference Ids
outbound.campaigns
language_groups
roles
Update Role
Update an existing role.
PUT
/
api
/
v1
/
roles
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.roles.update(request={
"name": "prompt_engineer",
"description": "Role for users who can fetch and change prompts",
"permissions": [
"prompts_read",
"prompts_write",
"prompts_delete",
],
"id": 1,
"last_updated_comments": "Updated to add delete permission",
})
# Handle response
print(res)
{
"name": "prompt_engineer",
"description": "Role for users who can fetch and change prompts",
"permissions": [
"prompts_read",
"prompts_write",
"prompts_delete"
],
"id": 1,
"last_updated_comments": "Updated to add delete permission",
"is_system_role": false,
"last_updated": "2023-11-07T05:31:56Z",
"last_updated_by": "user@email.com"
}
Authorizations
Body
application/json
Request model to update an existing role.
Response
200
application/json
Successful Response
Information about a role.
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.roles.update(request={
"name": "prompt_engineer",
"description": "Role for users who can fetch and change prompts",
"permissions": [
"prompts_read",
"prompts_write",
"prompts_delete",
],
"id": 1,
"last_updated_comments": "Updated to add delete permission",
})
# Handle response
print(res)
{
"name": "prompt_engineer",
"description": "Role for users who can fetch and change prompts",
"permissions": [
"prompts_read",
"prompts_write",
"prompts_delete"
],
"id": 1,
"last_updated_comments": "Updated to add delete permission",
"is_system_role": false,
"last_updated": "2023-11-07T05:31:56Z",
"last_updated_by": "user@email.com"
}
Assistant
Responses are generated using AI and may contain mistakes.