Skip to main content

Add user to project

POST 

/project/:id/users

Add new user to project

Request

Path Parameters

    id stringrequired

    A unique project ID

    Example: 5e9602e7a39e5a46428b457f

Body

    emailstring

    User email

    Example: admin@testomato.com
    rolestring

    4 - Project Admin 5 - Project Developer 6 - Project Guest

    Possible values: [4, 5, 6]

Responses

User was successfully add to the project

Schema

    emailstring

    Main user email

    Example: roman@testomato.com
    phonenullable

    A phone number (optional) and not required

    confirmTokenExpiration

    nullable

    Date and time when current common confirm token expires

    datedate-time
    Example: 2022-10-21 13:10:35.000000
    timezone_typeint32
    Example: 3
    timezonestring
    Example: Europe/Prague
    namestring

    User name

    Example: John Tomatoseeds
    confirmedboolean

    Was user email confirmed?

    timezonestring

    User time zone name

    Example: Europe/Prague
    reportPeriodstring

    Possible values: [week]

    Example: week
    notificationEmailnullable
    Example: roman+notifications@testomato.com
    notificationDelayint32
    Example: 1
    apiKeystring

    User API Key

    Example: abcdef
    idstring
    Example: 7

    role

    object

    idstring
    Example: 4
    users_idnullable
    namestring
    Example: project admin
    permissionsstring[]
    systemRoleboolean
    Example: true

    permissionsSwitches

    object

    Project permissions for current user

    readboolean

    Can current user view results?

    runboolean

    Can current user run checks?

    editTestboolean
    editboolean

    Can current user edit project settings?

    manageUsersboolean

    Can current user manage others?

    Default value: true
    apiKeyboolean

    Can current user view apiKey?

    Default value: true
    leaveboolean

    Can current user leave project?

    Default value: true
    isPayerboolean

    Is user owner of the Project?

    Example: false
    canBeRemovedboolean
    Example: true