# Synchronize entitlements with purchased records

If RUCKUS One licenses are not up to date with purchased licenses, call this API to sync with purchased records. This API syncs RUCKUS One licenses from purchased entitlements.

Endpoint: PATCH /entitlements
Version: v0.2.0

## Header parameters:

  - `Content-Type` (string, required)

## Request fields (application/vnd.ruckus.v1.2+json):

  - `usageType` (string)
    Usage type for entitlement synchronization, specifying the context of the sync operation; deprecated and not used in V2.

  - `status` (string)

  - `refreshType` (string)
    Type of refresh operation to perform during synchronization, determining the scope and method of the entitlement data refresh.
    Enum: "FULL", "DELTA", "PAGINATED"

## Response 202:

  - `202` (unknown)
    Sync request accepted. RUCKUS One licenses will be synchronized from purchased records.

## Response 202 fields (application/json):

  - `link` (string)
    URI link for tracking or retrieving the status of the accepted request.

  - `desc` (string)
    Human-readable description providing details about the accepted request, its purpose, and expected processing outcome.

  - `requestId` (string)
    Unique identifier assigned to track the accepted request throughout its processing life cycle, enabling status monitoring and correlation with logs.

## Response 404:

  - `404` (unknown)
    Tenant not found.

## Response 404 fields (application/vnd.ruckus.v1.2+json):

  - `code` (string)
    Unique error code identifying the specific type of error that occurred.

  - `message` (string)
    Human-readable error message providing details about what went wrong.

  - `reason` (string)
    Detailed explanation of why the error occurred, providing additional context.

  - `suggestion` (string)
    Actionable suggestion or recommendation for how to resolve or avoid this error.

## Response 417:

  - `417` (unknown)
    Entitlement ID is missing. At least one tenant subscription must be active.

## Response 417 fields (application/vnd.ruckus.v1.2+json):

  - `code` (string)
    Unique error code identifying the specific type of error that occurred.

  - `message` (string)
    Human-readable error message providing details about what went wrong.

  - `reason` (string)
    Detailed explanation of why the error occurred, providing additional context.

  - `suggestion` (string)
    Actionable suggestion or recommendation for how to resolve or avoid this error.

## Response 500:

  - `500` (unknown)
    Internal Server Error

## Response 500 fields (application/json):

  - `requestId` (string)
    Unique identifier for the request that generated this error, used for tracking and debugging purposes.

  - `error` (object)
    Error response containing detailed error information including error codes, messages, reasons, and suggestions for resolution.

  - `error.code` (string)
    Unique error code identifying the specific type of error that occurred.

  - `error.message` (string)
    Human-readable error message providing details about what went wrong.

  - `error.reason` (string)
    Detailed explanation of why the error occurred, providing additional context.

  - `error.suggestion` (string)
    Actionable suggestion or recommendation for how to resolve or avoid this error.

