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 (user,merchant) | |
permissions | object | For active permission =1 ,For inactive permission =0 | |
role_description | string(optional) | role_description | |
Request
Body Params application/json
{
"api_key" : "{{apikey}}",
"marketplace_user_id" : 510001,
"user_id" : 510001,
"user_type" : 2,
"role_name" : "user",
"permissions" :{
"1": {
"read": 1,
"update": 1
}
},
"role_description" : " "
}
Request samples
curl --location --request POST 'https://api.yelo.red/open/acl/createRole' \
--header 'Content-Type: application/json' \
--data-raw '{
"api_key" : "{{apikey}}",
"marketplace_user_id" : 510001,
"user_id" : 510001,
"user_type" : 2,
"role_name" : "user",
"permissions" :{
"1": {
"read": 1,
"update": 1
}
},
"role_description" : " "
}'
Responses
application/json Modified at 2025-05-20 06:55:51