Skip to main content

Upsert a Permission

PUT 

/user-svc/permission/:permissionId

Creates or updates a permission. The permission ID must be prefixed by the callers username (email). Eg. if the owner's email/username is petstore-svc the permission should look like petstore-svc:pet:edit.

Requires the user-svc:permission:create permission.

Request

Path Parameters

    permissionId stringrequired

    Permission ID

Body

required

Permission Details

    permission

    object

    createdAt string
    description string
    id string

    eg. "user.viewer"

    name string

    eg. "User Viewer"

    ownerId string

    Service who owns the permission

    updatedAt string

Responses

OK

Schema

    object

Loading...