test permission
Developing
POST
/members/invitations/token/accept
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.vidinfra.com/v1/members/invitations/token/accept' \
--header 'Content-Type: application/json' \
--data-raw '// full access of project
// {
// "user_id": "772218c6-67b5-4acb-a380-3899a2aeb37a",
// "org_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
// "email": "skshahra@gmail.com",
// "permissions": [
// {
// "entity_id": "45f8a066-f355-4d7f-93ff-9886c7e362c0",
// "entity_type": "projects",
// "name": "full-access",
// "action": "write+read",
// "permission": []
// },
// {
// "entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
// "entity_type": "organizations",
// "name": "billing",
// "action": "",
// "permission": []
// },
// {
// "entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
// "entity_type": "organizations",
// "name": "api",
// "action": "write+read",
// "permission": []
// }
// ]
// }
// custom access of project
{
"user_id": "772218c6-67b5-4acb-a380-3899a2aeb37a",
"org_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
"email": "skshahra@gmail.com",
"permissions": [
{
"entity_id": "45f8a066-f355-4d7f-93ff-9886c7e362c0",
"entity_type": "project",
"name": "custom",
"action": "",
"permission": [
{
"action": "custom",
"folders": [
{
"action": "write+read+delete",
"folder_id": "136b244a-9304-4ad3-b534-f25a4046a6d3"
}
],
"name": "folder"
},
{
"action": "write+read+delete",
"name": "livestreams"
},
{
"action": "write+read+delete",
"name": "analytics"
},
{
"action": "write+read+delete",
"name": "advertisements"
},
{
"action": "write+read+delete",
"name": "settings"
},
{
"action" : "write+read+delete",
"name" : "players"
}
]
},
{
"entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
"entity_type": "organization",
"name": "billing",
"action": "write+read",
"permission": []
},
{
"entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
"entity_type": "organization",
"name": "api",
"action": "write+read",
"permission": []
}
]
}'
Response Response Example
{}
Request
Body Params application/json
Responses
Modified at 2025-06-19 04:59:01