Skip to main content
Skip table of contents

Adding a sub-tenant to Rights Manager (RMG)

Request

To add a sub-tenant to RMG, send a POST request to:

CODE
https://<host>:<port>/rmg/v1/admin/tenants

Headers

  • x-correlation-id – identifier for logging, to correlate messages across a call flow

  • Authorization – Keycloak authentication token. Must contain the adminRole or primaryTenantRole role and be prefixed with 'Bearer ' (note the space).

  • nv-authorizations – Request AuthN token with SMS privilege. Only required in deployments that use SSP.

  • Content-Type: application/json

Mandatory arguments

All the following arguments are in the request body:

  • status – whether the tenant is ENABLED or DISABLED

  • archiveConfiguration – block that determines whether inactive entitlements are archived or not for this tenant. It contains the following:

    • status – whether archiving is ENABLED or DISABLED

    • daysAfterUnsubscription – number of days an unsubscribed entitlement is kept in the active data set before being archived (default: 7)

    • daysAfterExpiry – number of days an expired entitlement is kept in the active data set before being archived (default: 7)

    • fixedArchivePeriod – maximum retention period in days before an invalid entitlement is archived, regardless of the isArchivable flag.

  • _id – the tenant ID. This must comply with the naming convention – see Tenant naming convention.

Response

A successful request returns an HTTP 201 status.

A bad request returns an HTTP 400 status.

A request with an invalid token returns an HTTP 403 status.

Example

A successful request returns the ID of the tenant that was created:

CODE
{
  "_id": "primary-tenant_sub-tenant-1"
}

See also

For full details of this API, see the Rights Manager (RMG) API documentation.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.