/api/stations/v1/station-groups/{stationGroupId}/app-assignments
  • 22 Aug 2024
  • 5 Minutes to read
  • Contributors

/api/stations/v1/station-groups/{stationGroupId}/app-assignments


Article summary

Post
/api/stations/v1/station-groups/{stationGroupId}/app-assignments

Creates a new app assignment for a station group.

Path parameters
stationGroupId
Required

The id of the station group to update.

Exampleg56RCoZCtzv7borvp
Body parameters

The fields to create an app assignment.

object

Represents the contents of a single app assignment.

Example{ "type": "app", "tag": "development", "appId": "swM2aGebq5MjhKafN" }
OneOf
AllAppAssignment
type
string Required
Valid values[ "all" ]
Default"all"
tag
string Required

The tag of an app assignment. Determines if the app assignment refers to the development version of an app or the latest production version.

Valid values[ "development", "latest-published" ]
FolderAppAssignment
type
string Required
Valid values[ "app-folder" ]
Default"app-folder"
tag
string Required

The tag of an app assignment. Determines if the app assignment refers to the development version of an app or the latest production version.

Valid values[ "development", "latest-published" ]
appFolderId
Exampleg56RCoZCtzv7borvp
SpecificAppAssignment
type
string Required
Valid values[ "app" ]
Default"app"
tag
string Required

The tag of an app assignment. Determines if the app assignment refers to the development version of an app or the latest production version.

Valid values[ "development", "latest-published" ]
appId
Exampleg56RCoZCtzv7borvp
VersionAppAssignment
type
string Required
Valid values[ "app-version" ]
Default"app-version"
appVersionId
Exampleg56RCoZCtzv7borvp
Responses
200

The app assignment was successfully created.

object

App assignments are added to stations and station groups to restrict what apps are allowed to run at respective stations.

Example{ "id": "12M2aGebq5MjhKafN", "type": "app", "tag": "development", "appId": "swM2aGebq5MjhKafN" }
id
Exampleg56RCoZCtzv7borvp
OneOf
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.

errorCode
Valid values[ "generic.customerIdRequired" ]
retryable
Valid values[ "False" ]
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.

errorCode
Valid values[ "generic.workspaceIdRequired" ]
retryable
Valid values[ "False" ]
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.

errorCode
Valid values[ "generic.invalidParams" ]
retryable
Valid values[ "False" ]
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.

errorCode
Valid values[ "http.invalidBodyJson" ]
retryable
Valid values[ "False" ]
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.

errorCode
Valid values[ "http.invalidHeaders" ]
retryable
Valid values[ "False" ]
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.

errorCode
Valid values[ "http.multiValueHeader" ]
details
object
headerName
string

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

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

errorCode
Valid values[ "generic.authRequired" ]
retryable
Valid values[ "False" ]
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.

errorCode
Valid values[ "generic.notFound" ]
retryable
Valid values[ "False" ]
409

Conflicting app assignment detected. Only one app assignment can be specified for a specific app, app folder or all apps.

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.

errorCode
Valid values[ "stations.conflictingAppAssignment" ]
details
object
appAssignmentKind
string
retryable
Valid values[ "False" ]
422

An error occurred. The Tulip error codes generic.archivedResourceUnsupportedOperation, stations.invalidReferencedResourceId, and stations.resourceAppAssignmentsLimitReached all use the 422 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.

errorCode
Valid values[ "generic.archivedResourceUnsupportedOperation" ]
retryable
Valid values[ "False" ]
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.

errorCode
Valid values[ "stations.invalidReferencedResourceId" ]
details
Array of object

A list of invalid referenced resources.

object
resourceId
string

The id of the invalid resource.

details
string

Details about why the resource was invalid.

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

errorCode
Valid values[ "stations.resourceAppAssignmentsLimitReached" ]
details
object
workspaceId
string
resourceType
string

The type of the resource with too many app assignments.

resourceId
string

The ID of the resource with too many app assignments.

limit
number

The limit of how many app assignments the resource can have.

current
number

The current number of app assignments that the resource has.

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

errorCode
Valid values[ "http.endpointRateLimitExceeded" ]
details
object
details
string

Additional details about this endpoint's rate limits.

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

errorCode
Valid values[ "generic.internal" ]
retryable
Valid values[ "False" ]

Was this article helpful?