Skip to main content

Add Users To Organization

PUT 

/api/v1/organizations/:organization_id/users

Add a user to an organization.

Request

Path Parameters

    organization_id uuidrequired

Cookie Parameters

    session any

Body

array

required

  • Array [

  • user_id

    object

    The user's ID.

    anyOf

    string

    email

    object

    The user's email address.

    anyOf

    string

    project_ids

    object

    required

    The project IDs to add the user to.

    anyOf

  • Array [

  • string

  • ]

  • role_id

    object

    The role ID to assign to the user.

    anyOf

    string

  • ]

Responses

Successful Response

Schema

  • Array [

  • id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    email emailrequired

    The user's email address.

    user_id

    object

    The user's ID.

    anyOf

    string

    organization_id uuidrequired

    The organization's ID.

    pending Pending (boolean)

    Whether the user's membership is pending account signup.

    Default value: true

    invited_by_user_id

    object

    The user ID of the user who added the user to the organization.

    anyOf

    string

    invited_by_user_email

    object

    The email address of the user who added the user to the organization.

    anyOf

    string

    roles

    object[]

    required

    The roles of the user in the organization.

  • Array [

  • id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    user_id User Id (string)required

    The user's ID.

    organization_id uuidrequired

    The organization's ID.

    role_id uuidrequired

    The role's ID.

    role

    object

    required

    The role.

    id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    name Name (string)required

    A name for the role.

    Possible values: non-empty and <= 3000 characters

    organization_id

    object

    required

    The organization's ID.

    anyOf

    string

    permissions

    object[]

    required

    The actual permissions of the role.

  • Array [

  • id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    name Name (string)required

    A name for the permission.

    Possible values: non-empty and <= 3000 characters

    description

    object

    required

    A description for the permission.

    anyOf

    string

    access Access (boolean)required

    Whether the permission is granted or not.

  • ]

  • ]

  • ]

Loading...