User Default Org

Retrieve the default organization for the current user.

Request

gethttps://api.cloudsmith.io/v2/user/default-org

Response

Responses

Retrieved the user's default organization.

object

object

org_name
string
optional
length ≥ 1
org_slug
slug
required
^[-a-zA-Z0-9_]+$
length ≥ 1
org_slug_perm
slug
optional
^[-a-zA-Z0-9_]+$
length ≥ 1

Request could not be processed (see detail).

object

object

detail
string
required
length ≥ 1

The user has no default organization set.

object

object

detail
string
required
length ≥ 1

Missing or invalid parameters (see detail).

object

object

detail
string
required
length ≥ 1