Detach a direct permission from an application
Remove a single permission directly granted to an application without replacing its complete direct-permission set, and synchronize the change to the identity provider. Detaching a permission the application does not hold has no effect.
Required permissions: permission:update.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
resource
The resource type of the permission to detach.
action
The action of the permission to detach.
application_id
The ID of the application.
Headers
X-Penny-As-Business
Act on behalf of another business that has granted you access. Requires the business:act_as permission.
Response
The updated application.
application_id
Penny's unique identifier for this application.
version
A number that increases each time this application's details change. Use it to confirm you are looking at the latest information.
version_time
The date and time this application's details were last changed.
name
A human-readable name for this application.
description
A human-readable description of what this application does.
status
This application’s current lifecycle status: ‘active’, ‘deactivated’ (cannot authenticate), ‘suspended’ (restricted, typically pending review), or ‘deleted’.
Allowed values:
active
Whether this application is currently active.
deleted
Whether this application has been removed.
business_id
The business this application belongs to.
roles
The roles assigned to this application, if any.
type
The type of an application.
Allowed values:
permissions
Permissions granted directly to this application, in addition to any granted through its roles.
client_id
The OAuth2 client ID this application uses to authenticate with Penny. Absent while the application is being provisioned or after it has been deprovisioned.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error