- Introduction
- Getting Started
- Permissions
- Core Resources
- Channels
- Messages
- Teams
- Roles
- Users
- Todos
- Direct Messages
- Applications
- Reactions
- Attachments
- Voice
- Webhooks
- Blog
- Category
- Schemas
- Websockets
- Example Bot
- WebSocket event envelope
- Websocket events
- CHANNEL_CREATED
- CHANNEL_DELETED
- CHANNEL_UPDATED
- MESSAGE_SEND
- MESSAGE_UPDATED
- MESSAGE_DELETED
- MESSAGE_REACTION_ADDED
- MESSAGE_REACTION_REMOVED
- PRESENCE_UPDATE
- TEAM_ROLE_CREATED
- TEAM_ROLE_DELETED
- TEAM_ROLES_UPDATED
- TEAM_UPDATED
- TODO_ITEM_CREATED
- TODO_ITEM_DELETED
- TODO_ITEM_UPDATED
- USER_JOINED_TEAM
- USER_LEFT_TEAM
- USER_JOINED_VOICE_CHANNEL
- USER_LEFT_VOICE_CHANNEL
- USER_PROFILE_UPDATED
- USER_ROLE_ADDED
- USER_ROLE_REMOVED
- USER_UPDATED_VOICE_METADATA
- BLOG_CREATED
- BLOG_DELETED
- CATEGORIES_PRIORITY_UPDATED
- CATEGORY_UPDATED
- CATEGORY_DELETED
- CATEGORY_CREATED
- CHANNELS_PRIORITY_UPDATED
- Connecting via WebSocket
Clone Role
POST
https://api.teamly.one/api/v1/teams/{teamId}/roles/{roleId}/clone
Request
Path Params
teamId
string
required
roleId
string
required
Header Params
Authorization
string
required
Default:
Bot {token}
Content-Type
string
required
Default:
application/json
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.teamly.one/api/v1/teams//roles//clone' \
--header 'Authorization;'
Responses
🟢200Success
application/json
Body
success
boolean
required
role
object (Role)
required
id
string
required
teamId
string
required
name
string
required
iconUrl
string <uri>
optional
Default:
null
color
string
required
color2
string
optional
Default:
null
permissions
number
required
Default:
0
priority
number
required
Default:
0
createdAt
string <date-time>
required
Default:
CURRENT_TIMESTAMP
updatedAt
string <date-time>
optional
Default:
null
isDisplayedSeparately
boolean
required
Default:
true
isSelfAssignable
boolean
optional
Default:
false
iconEmojiId
string
optional
Default:
null
mentionable
boolean
required
Default:
true
botScope
object
required
Default:
{}
Example
{
"success": true,
"role": {
"id": "string",
"teamId": "string",
"name": "string",
"iconUrl": null,
"color": "string",
"color2": null,
"permissions": 0,
"priority": 0,
"createdAt": "CURRENT_TIMESTAMP",
"updatedAt": null,
"isDisplayedSeparately": true,
"isSelfAssignable": false,
"iconEmojiId": null,
"mentionable": true,
"botScope": {}
}
}
Modified at 2024-12-28 16:01:21