Skip to content

Save a producer administration key

Request

Adds or updates a public key which can be used by a producer user to make Dynamic Monetization API requests.

Security
AdministrationAccess
Bodyapplication/jsonrequired

The request payload.

Array [
publicKeystring

A public key in PEM format.

Example:"-----BEGIN PUBLIC KEY-----\\nMIIBgjAcBgoqhkiG9w0BD...\\n-----END PUBLIC KEY-----"
idstring

Your identifier for the key. This identifier must be added as a claim in a JWT token signed with the corresponding private key, in order to indicate which public key should be used to verify the JWT is valid.

Example:"xyz"
]
curl -i -X PUT \
  https://siteID.flexnetoperations.com/dynamicmonetization/api/v1.1/administration-keys \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "publicKey": "-----BEGIN PUBLIC KEY-----\\nMIIBgjAcBgoqhkiG9w0BD...\\n-----END PUBLIC KEY-----",
      "id": "xyz"
    }
  ]'

Responses

OK. The request succeeded in its entirety.