Create/Rotate Tenant Credentials
ashar_rotate_tenant_credentialsRotate or create a tenant's upstream credentials, updating encrypted API key and related metadata for admin-managed provisioning.
Instructions
Create or rotate the upstream credential of a tenant. ADMIN operation.
Args:
tenant_id (string): the tenant id
blindpay_api_key (string, optional): new upstream API key (encrypted at rest). If omitted, only metadata is updated where possible.
blindpay_instance_id, blindpay_receiver_id, blindpay_base_url (string, optional): upstream metadata
label (string, optional, default 'production')
Returns the rotated credential metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Credential label (default 'production') | |
| tenant_id | Yes | Tenant id | |
| blindpay_api_key | No | New upstream API key | |
| blindpay_base_url | No | Upstream base url | |
| blindpay_instance_id | No | Upstream instance id | |
| blindpay_receiver_id | No | Upstream receiver id |