POST
/
apikeys
curl --request POST \
  --url https:/api.schedo.dev/api/apikeys \
  --header 'Content-Type: application/json' \
  --data '{
  "environment_id": 1,
  "name": "First ApiKey"
}'
{
  "created_at": "<string>",
  "edges": {},
  "environment_id": 123,
  "id": 123,
  "internal": true,
  "key": "<string>",
  "name": "<string>",
  "organization_id": 123,
  "revoked": true
}

Body

application/json
Body
environment_id
integer
required
Example:

1

name
string
required
Minimum length: 4
Example:

"First ApiKey"

Response

200 - application/json
OK
created_at
string

CreatedAt holds the value of the "created_at" field.

edges
object

Edges holds the relations/edges for other nodes in the graph. The values are being populated by the ApiKeyQuery when eager-loading is set.

environment_id
integer

EnvironmentID holds the value of the "environment_id" field.

id
integer

ID of the ent.

internal
boolean

Internal holds the value of the "internal" field.

key
string

Key holds the value of the "key" field.

name
string

Name holds the value of the "name" field.

organization_id
integer

OrganizationID holds the value of the "organization_id" field.

revoked
boolean

Revoked holds the value of the "revoked" field.