Add API key

Add API key

post

Add an API key. If you set developmentKey to true this flag will be removed from the current development API key.

Authorizations
Path parameters
projectIdintegerRequired

Project ID

Body
all ofOptional
Responses
200
OK
application/json
Responseall of
post
POST /v1/api/{projectId}/apikeys HTTP/1.1
Host: studio.edgeimpulse.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70

{
  "name": "text",
  "apiKey": "text",
  "isDevelopmentKey": true,
  "role": "admin"
}
200

OK

{
  "success": true,
  "error": "text",
  "id": 1,
  "apiKey": "text"
}

Last updated

Was this helpful?