User groups
Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de consulta
searchstringOpcionalDefault:
""pageinteger · int32OpcionalDefault:
0perPageinteger · int32OpcionalDefault:
25sortstringOpcionalDefault:
namedirstringOpcionalDefault:
ascprofilestring · enumOpcionalValores possíveis:
Tipo de Perfil
Respostas
200
User Groups listed
application/json
currentPageinteger · int32Opcional
perPageinteger · int32Opcional
totalinteger · int64Opcional
404
Portal was not found
application/json
422
A query param was invalid
application/json
500
An internal server error was thrown
application/json
get/portal-user-groups/user-groups
GET /api/b2b/portal-user-groups/user-groups HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"currentPage": 1,
"perPage": 1,
"total": 1,
"items": [
{
"id": "text",
"name": "text",
"profile": "SELLER",
"active": true
}
]
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Corpo
namestringOpcional
profilestring · enumOpcionalValores possíveis:
activebooleanOpcional
Respostas
201
Criado
application/json
idstringOpcional
namestringOpcional
profilestring · enumOpcionalValores possíveis:
activebooleanOpcional
404
Portal was not found
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
post/portal-user-groups/user-groups
POST /api/b2b/portal-user-groups/user-groups HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 170
{
"name": "text",
"profile": "SELLER",
"active": true,
"permissions": {
"menu_items": [
{
"menu_item_id": "text",
"access": true
}
],
"new_orders": [
{
"new_order_id": "text",
"access": true
}
]
}
}{
"id": "text",
"name": "text",
"profile": "SELLER",
"active": true,
"permissions": {
"menu_items": [
{
"menu_item_id": "text",
"title": "text",
"access": true
}
],
"new_orders": [
{
"new_order_id": "text",
"title": "text",
"access": true
}
]
}
}