Add collaborator

Add collaborator

Add a collaborator to a project.

POSThttps://studio.edgeimpulse.com/v1/api/{projectId}/collaborators/add
Path parameters
projectId*integer

Project ID

Body
usernameOrEmail*string

Username or e-mail address

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

id*integer

Unique identifier of the created entity.

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/collaborators/add', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "usernameOrEmail": "text"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "id": 0
}

Last updated