Skip to content

Commit

Permalink
permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaarbonel committed Sep 19, 2024
1 parent 2d3ade3 commit ff4b33f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docusaurus/video/docusaurus/docs/api/call_types/permissions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,33 @@ client.video.update_call_type(name = 'default',

</TabItem>

<TabItem value="go" label="Golang">

```go
client.Video().CreateCallType(ctx, &CreateCallTypeRequest{
Name: "allhands",
Grants: &map[string][]string{
"admin": {
SEND_AUDIO.String(),
SEND_VIDEO.String(),
MUTE_USERS.String(),
},
"customrole": {
SEND_AUDIO.String(),
SEND_VIDEO.String(),
},
},
})

client.Video().UpdateCallType(ctx, "default", &UpdateCallTypeRequest{
Grants: &map[string][]string{
/* ... */
},
})
```

</TabItem>

<TabItem value="curl" label="cURL">

```bash
Expand Down

0 comments on commit ff4b33f

Please sign in to comment.