/api/users/v1/user-groups
  • 17 Oct 2024
  • 5 Minutes to read
  • Contributors

/api/users/v1/user-groups


Article summary

Get
/api/users/v1/user-groups

Lists all user groups.

Query parameters
limit
integer

The number of items to return in the response.

Minimum0
Example1
filter
string

Filters the result using OData 4.01 syntax. Supports filtering on the id field. Only supports the eq and or operators.

offset
integer

The number of items to skip before collecting the result.

Minimum0
Example0
search
string

The string to match when searching for user groups.

archived
boolean

When set to false (the default), only un-archived user groups are returned. When set to true, only archived user groups are returned.

Responses
200

A list of available user groups

Expand All
object
items
Array of object (UserGroup)
object

Representation of a user group.

Example{ "id": "78M2aGebq5MjhKafN", "name": "Machine maintenance team", "description": "People responsible for the maintenance of the machines in the factory." }
id
Exampleg56RCoZCtzv7borvp
name
string

The user group's name.

description
string

A human-readable description of the user group and what the group represents.

avatar
string

The storage key of the avatar which can be used to retrieve the avatar image's signed URL.

assignedUsersCount
number

The number of users assigned to the user group.

created
at
string (date-time)

A date-time string as defined by RFC 3339 §5.6.

Example2022-11-21T07:59:10Z
by
object (ActorMetadata)

Represents a user, api-token, or device.

type
string
Valid values[ "user", "client", "api-token", "app-exchange-api-token", "celosx-api-token", "automation", "instance-init" ]
id
Exampleg56RCoZCtzv7borvp
lastModified
at
string (date-time)

A date-time string as defined by RFC 3339 §5.6.

Example2022-11-21T07:59:10Z
by
object (ActorMetadata)

Represents a user, api-token, or device.

type
string
Valid values[ "user", "client", "api-token", "app-exchange-api-token", "celosx-api-token", "automation", "instance-init" ]
id
Exampleg56RCoZCtzv7borvp
archived
at
string (date-time)

A date-time string as defined by RFC 3339 §5.6.

Example2022-11-21T07:59:10Z
by
object (ActorMetadata)

Represents a user, api-token, or device.

type
string
Valid values[ "user", "client", "api-token", "app-exchange-api-token", "celosx-api-token", "automation", "instance-init" ]
id
Exampleg56RCoZCtzv7borvp
count
number

The total number of items that matched the list parameters.

Example10
nextPage
string (url)

A URL at which the next page of results can be fetched.

prevPage
string (url)

A URL at which the previous page of results can be fetched.

errors
Array of object (PaginatedItemError)

A list of errors per item that is omitted from the paginated response, if any.

object
Example{ "errorCode": "generic.internal", "message": "Something went wrong.", "retryable": false, "details": { "id": "invalidRecordId" } }
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

details
object
id
string

The ID of the omitted record.

400

An error occurred. The Tulip error codes generic.customerIdRequired, generic.workspaceIdRequired, generic.invalidParams, http.invalidBodyJson, http.invalidHeaders, http.multiValueHeader, generic.limitParamNonNegativeInt, generic.limitParamBounds, generic.offsetParamNonNegativeInt, and userGroups.invalidFilter all use the 400 HTTP status code. See the documentation of the response content schema for details on these specific Tulip errors that could result in this status code.

Expand All
OneOf
object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

details
object
headerName
string

The name of the given HTTP header which had multiple values.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

details
object
upperBound
integer

The maximum allowed value for the limit parameter.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

401

The request was missing required authentication information.

This error is not automatically retryable.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

429

Too many requests have been made to this endpoint in a short time period.

This error is not automatically retryable.

Expand All
object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.

details
object
details
string

Additional details about this endpoint's rate limits.

500

An internal server error occurred. Please contact support@tulip.co if the error persists.

This error is not automatically retryable.

object
errorCode
string

A machine-readable code identifying the type of error.

Pattern^[a-zA-Z0-9.]$
message
string

A human-readable description of the error intended for debugging purposes only.

The exact content of this message is not stable.

retryable
boolean

Whether the request can be automatically retried by the client.


Was this article helpful?