/api/users/v1/roles/{userRoleId}
  • 17 Oct 2024
  • 4 Minutes to read
  • Contributors

/api/users/v1/roles/{userRoleId}


Article summary

Get
/api/users/v1/roles/{userRoleId}

Gets a single user role.

Path parameters
userRoleId
Required

The unique identifier for a user role.

Responses
200

The user role details were successfully retrieved.

Expand All
object

Representation of a user role.

OneOf
CustomUserRole
id
Exampleg56RCoZCtzv7borvp
name
string

The custom user role's name.

description
string

A human-readable description of what the custom user role does.

isCustom
boolean

A flag specifying if the user role is "custom" i.e. user-created, or a stock Tulip role.

Valid values[ "True" ]
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
BuiltInUserRole
id
string

The possible ID/names a builtin user role can have.

Valid values[ "operator", "operator-with-registration", "shop-floor-operator", "apps-approver-admin", "apps-builder-admin", "apps-admin", "tables-admin", "connectors-admin", "shop-floor-admin", "viewer", "viewer-with-player", "admin", "workspace-owner", "owner" ]
name
string

The builtin user role's name.

description
string

A human-readable description of what the builtin user role does.

isCustom
boolean

A flag specifying if the user role is "custom" i.e. user-created, or a stock Tulip role.

Valid values[ "False" ]
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
400

An error occurred. The Tulip error codes generic.customerIdRequired, generic.workspaceIdRequired, generic.invalidParams, http.invalidBodyJson, http.invalidHeaders, and http.multiValueHeader 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.

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.

404

The requested resource was not found.

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?