Skip to main content

kobana billing dashboard-users

Commands of kobana billing dashboard-users. Every global option (Global options) applies here.

CommandHTTPDescription
dashboard-users listGET /v1/dashboard_usersList dashboard users
dashboard-users createPOST /v1/dashboard_usersInvite dashboard user
dashboard-users updatePUT /v1/dashboard_usersCreate or update a dashboard user
dashboard-users getGET /v1/dashboard_users/{id}Get dashboard user
dashboard-users deleteDELETE /v1/dashboard_users/{id}Remove dashboard user

dashboard-users list​

List dashboard users

kobana billing dashboard-users list [OPTIONS]

GET /v1/dashboard_users

Returns a paginated list of dashboard users (team members) for the current organization.

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
searchstringnoText search by name or email.
statusstringnoFilter by status: all (default), active, pending_invitation or suspended. Values: all, active, pending_invitation, suspended.
rolestringnoFilter by users that have the given role (role slug).

Responses

HTTPDescription
200Paginated list of dashboard users.
404Resource not found in the current organization.

dashboard-users create​

Invite dashboard user

kobana billing dashboard-users create [OPTIONS]

POST /v1/dashboard_users

Invites a new member to the organization team. email and at least one role in role_ids are required. The user receives an email invite and starts with pending_invitation status.

Request body

NameTypeRequiredDescription
emailstring (email)yesEmail of the user to invite.
role_idsarray<string (uuid)>yesList of role UUIDs (team_roles) to assign to the user. Must contain at least one item.
namestringnoUser name (optional — may be filled in by the user on first login).
external_idstringnoExternal user identifier in Kobana OAuth, when already known.
permissionsarray<string>noAdditional ad-hoc permissions (on top of those inherited from roles). Accepts the same permission slugs.
custom_metadataobjectnoArbitrary client-defined metadata (key/value).

More fields and nested objects: kobana schema billing.dashboard-users.create.

Responses

HTTPDescription
201User invited.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

dashboard-users update​

Create or update a dashboard user

kobana billing dashboard-users update [OPTIONS]

PUT /v1/dashboard_users

Looks the user up by id, public_id, external_id or email — the last one is unique per organization. If found, updates it; otherwise creates it and returns 201.

Request body

NameTypeRequiredDescription
emailstring (email)noUser's email. Besides being a resource field, it doubles as the natural lookup key.
namestringnoUser name (optional — may be filled in by the user on first login).
external_idstringnoExternal user identifier in Kobana OAuth, when already known.
role_idsarray<string (uuid)>noList of role UUIDs (team_roles) to assign to the user. Must contain at least one item.
permissionsarray<string>noAdditional ad-hoc permissions (on top of those inherited from roles). Accepts the same permission slugs.
custom_metadataobjectnoArbitrary client-defined metadata (key/value).
idstring (uuid)noRecord UUID. Used only to locate it — never written.
public_idstring (uuid)noPublic UUID of the record, used to locate it.

More fields and nested objects: kobana schema billing.dashboard-users.update.

Responses

HTTPDescription
200Record updated.
201Record created.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

dashboard-users get​

Get dashboard user

kobana billing dashboard-users get [ID] [OPTIONS]

GET /v1/dashboard_users/{id}

Path arguments: id

Responses

HTTPDescription
200Dashboard user detail.
404Resource not found in the current organization.

dashboard-users delete​

Remove dashboard user

kobana billing dashboard-users delete [ID] [OPTIONS]

DELETE /v1/dashboard_users/{id}

Removes the dashboard user from the organization. Irreversible — the user must be invited again to regain access.

Path arguments: id

Responses

HTTPDescription
200User removed.
404Resource not found in the current organization.