createApiKey

@POST(value = "/{apiVersion}/apiuser/{apiUser}/apikey")
abstract suspend fun createApiKey(@Path(value = "apiVersion") apiVersion: String, @Path(value = "apiUser") apiUser: String, @Header(value = "Ocp-Apim-Subscription-Key") productSubscriptionKey: String): Response<ApiKey>

Creates a new API key for the specified API user.

Return

A Response containing the generated ApiKey.

Parameters

apiVersion

The version of the API (e.g., v1_0 or v2_0).

apiUser

The ID of the API user for whom to create the key.

productSubscriptionKey

The subscription key for the product.