- Acl
- Custom PG
- CSV Import
- Menu
- Notification
- Tax
- Themes
- Customer
- Wallet
- Loyality Points
- City
- Promo
- Order
- Search
- Marketplace
- Task
- Merchant
- Catalogue
- Business Categories
- Send SMS
- Admin
- Billing
- Project
- Discount
- Store Reviews
- checkout template
- Payment
Edit Role
POST
/open/acl/editRole
Name | Type | Description | |
---|---|---|---|
api_key | string | Your API-key | |
marketplace_user_id | number | Your marketplace user id | |
user_id | number | Your user_id | |
user_type | number | For admin enter 2, For merchant enter 3 | |
role_name | string | Enter the role name | |
role_id | string | role id | |
permissions | object | For active permission=1 For inactive permission=0 | |
role_description | string(optional) | role_description |
Request
Body Params application/json
object {0}
Example
{
"api_key" : {{apikey}},
"marketplace_user_id" : 510001,
"user_id" : 510001,
"user_type" : 2,
"role_name" : "user",
"role_id" : 0,
"permissions" :{
"1": {
"read": 0,
"update": 0
}
},
"role_description" : " "
}
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.yelo.red/open/acl/editRole' \
--header 'Content-Type: application/json' \
--data-raw '{
"api_key" : {{apikey}},
"marketplace_user_id" : 510001,
"user_id" : 510001,
"user_type" : 2,
"role_name" : "user",
"role_id" : 0,
"permissions" :{
"1": {
"read": 0,
"update": 0
}
},
"role_description" : " "
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-04-17 07:11:33