Assign keysets to customer

Assigns one or more keysets to an existing OEM customer. This establishes the relationship between your customer and specific PubNub resources they can access.

Path Parameters
customerId string REQUIRED

The unique identifier of the customer

The unique identifier of the customer

Header Parameters
PubNub-Version string REQUIRED

Possible values: [2026-02-09]

Request Body REQUIRED
keysetIds number[] REQUIRED

Array of keyset IDs to assign to the customer

Responses
200

Success

Schema OPTIONAL
result object
id string
externalId string
name string
created string

a string to be decoded into a Date

updated string

a string to be decoded into a Date

keysets object[]
id number
assignedAt string

a string to be decoded into a Date

400

Bad Request Error

Schema OPTIONAL
statusCode number
error string

Possible values: [BadRequest]

message string[]
401

UnauthorizedError

Schema OPTIONAL
statusCode number
error string

Possible values: [Unauthorized]

message string[]
403

ForbiddenError

Schema OPTIONAL
statusCode number
error string

Possible values: [Forbidden]

message string[]
404

NotFoundError

Schema OPTIONAL
statusCode number
error string

Possible values: [NotFound]

message string[]
500

InternalErrorError

Schema OPTIONAL
statusCode number
error string

Possible values: [InternalError]

message string[]
* required
PubNub-Version*
Type: string
Possible values: [2026-02-09]
* required
customerId*
Type: string
The unique identifier of the customer
* required
keysetIds*
Type: array
Array of keyset IDs to assign to the customer
Array items:
items
Type: number
result
Type: object
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"BadRequest"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"Unauthorized"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"Forbidden"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"NotFound"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"InternalError"
message
Type: array
Array items:
items
Type: string