Create a workspace variable

Prev Next
Post
/v1alpha/workspace_variables

Creates a new workspace variable. Workspace variables are key-value pairs or tables accessible from all the workspace workflows and retained until manually deleted. For an example of creating a table using this API, refer to our Knowledge Base.

Security
HTTP
Type bearer
Body parameters
Collapse all
object
pretty_name
string Required

The pretty name of the workspace variable. This is the name as it will appear in the UI. The pretty name can include alphanumerics, underscores, hyphens, and spaces. The workspace variable name will have the hyphens and spaces converted to underscores and all lowercase letters.

ExampleMy Variable
value
object

The value of the workspace variable to create. For a string variable, enclose the value in quotation marks; use true/false for booleans; numbers and JSON objects can also be provided.

Example
table
object (v1alphaTable)
json
object
boolean
boolean
number
number (double)
text
string
Responses
200
401
403
default

A successful response.

Collapse all
object
variable
object (v1alphaWorkspaceVariable)
account_id
string

The ID of the workspace where the variable lives.

name
string

The name of the workspace variable.

pretty_name
string

The pretty name of the workspace variable. This is the name as it will appear in the UI.

value
object

The value of the workspace variable.

updated_by
object (v1alphaActor)
updated_at
string (date-time)

The timestamp when the workspace variable was last updated.

created_by
object (v1alphaActor)
created_at
string (date-time)

The timestamp when the workspace variable was created.

id
string

The unique identifier of the workspace variable.

sharing_data
object (v1alphaSharingData)
table
object (v1alphaTable)
json
object
boolean
boolean
number
number (double)
text
string
preview
string