PERMISSION

Get All Permissions

get
/api/v1/permission
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Successful response

application/json
get
/api/v1/permission
200

Successful response

No content

Create Permission

post
/api/v1/permission
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
objectOptionalExample: {"name":"Example Permission","slug":"example-permission-slug"}
Responses
200

Successful response

application/json
post
/api/v1/permission
200

Successful response

No content

Get One Permission

get
/api/v1/permission/{permissionSlug}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
permissionSlugstringRequiredExample: example-permission-slug
Responses
200

Successful response

application/json
get
/api/v1/permission/{permissionSlug}
200

Successful response

No content

Delete Permission

delete
/api/v1/permission/{permissionSlug}/delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
permissionSlugstringRequiredExample: example-permission-slug
Responses
200

Successful response

application/json
delete
/api/v1/permission/{permissionSlug}/delete
200

Successful response

No content

Last updated