Add secret

Add secret

Adds a secret.

POSThttps://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/secrets
Path parameters
organizationId*integer

Organization ID

Body
name*string
description*string
secret*string
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

id*integer

Secret ID

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/secrets', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "name": "text",
      "description": "text",
      "secret": "text"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated