Create Role
This API is used to create a role
post
Authorizations
AuthorizationstringRequired
Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."
Body
created_atstringOptional
deleted_atstringOptional
descriptionstringOptional
idintegerOptional
is_defaultbooleanOptional
namestringRequired
organization_idstringOptional
updated_atstringOptional
Responses
200
Successful Response
application/json
codeintegerOptionalExample:
200dataanyOptional
messagestringOptionalExample:
Successpost/core/user/organization/role
POST /core/user/organization/role HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 220
{
"created_at": "text",
"deleted_at": "text",
"description": "text",
"id": 1,
"is_default": true,
"name": "text",
"organization_id": "text",
"privilages": [
{
"disable": true,
"editor": true,
"name": "text",
"viewer": true
}
],
"updated_at": "text"
}200
Successful Response
{
"code": 200,
"data": null,
"message": "Success"
}Last updated