cURL
curl --request POST \ --url https://aiapi.{client}.nx1cloud.com/api/dataproduct/{dataproduct_id}/psk \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "description": "<string>", "validity_days": 123 } '
{ "psk": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "description": "<string>", "valid_until": "2023-11-07T05:31:56Z" }
Creates a pre-shared key for the specified data product with the given description and validity period.
The access token received from the authorization server in the OAuth 2.0 flow.
Unique ID of the data product for the creation of pre-shared key.
A brief description of the pre-shared key's purpose.
Number of days the key is valid for.
Pre-shared key created successfully.
The unique ID of the generated pre-shared key.
The description provided for this key.
Expiration date and time of the key.
Was this page helpful?