Skip to content

/AWS1/CL_APY=>CREATEAPIKEY()

About CreateApiKey

Creates a unique key that you can distribute to clients who invoke your API.

Method Signature

IMPORTING

Required arguments:

IV_APIID TYPE /AWS1/APYSTRING /AWS1/APYSTRING

The ID for your GraphQL API.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/APYSTRING /AWS1/APYSTRING

A description of the purpose of the API key.

IV_EXPIRES TYPE /AWS1/APYLONG /AWS1/APYLONG

From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_APYCREATEAPIKEYRSP /AWS1/CL_APYCREATEAPIKEYRSP