Create an API key
POST/apis/cra.diagrid.io/v1beta1/serviceaccounts/:ServiceAccountId/apikeys
Create an API key for a service account.
Request
Responses
- 201
- 400
- 401
- 403
- default
The created API key.
The request is invalid, for example expireInSeconds is not a whole number of seconds from 60 to 31536000 (365 days).
Authentication failed: the credentials are missing or not valid, or the x-diagrid-orgid header names a different organization than the credentials.
You are not authorized to perform this action. An API key cannot create API keys, and the caller must hold a role that can grant the service account's role.
Unexpected error.