View source: R/generated_client.R
| scripts_post_dbt | R Documentation | 
Create a dbt Script
scripts_post_dbt(
  name,
  repo_http_uri,
  parent_id = NULL,
  user_context = NULL,
  params = NULL,
  arguments = NULL,
  schedule = NULL,
  notifications = NULL,
  next_run_at = NULL,
  time_zone = NULL,
  hidden = NULL,
  target_project_id = NULL,
  required_resources = NULL,
  instance_type = NULL,
  cancel_timeout = NULL,
  docker_image_tag = NULL,
  partition_label = NULL,
  running_as_id = NULL,
  dbt_project = NULL,
  repo_ref = NULL,
  target_database = NULL
)
| name | string required. The name of the script. | 
| repo_http_uri | string required. The URL of the git repository (e.g., https://github.com/organization/repo_name.git). | 
| parent_id | integer optional. The ID of the parent job that will trigger this script | 
| user_context | string optional. "runner" or "author", who to execute the script as when run as a template. | 
| params | array optional. An array containing the following fields: 
 | 
| arguments | list optional. Parameter-value pairs to use when running this script. Only settable if this script has defined parameters. | 
| schedule | list optional. A list containing the following elements: 
 | 
| notifications | list optional. A list containing the following elements: 
 | 
| next_run_at | string optional. The time of the next scheduled run. | 
| time_zone | string optional. The time zone of this script. | 
| boolean optional. The hidden status of the item. | |
| target_project_id | integer optional. Target project to which script outputs will be added. | 
| required_resources | list optional. A list containing the following elements: 
 | 
| instance_type | string optional. The EC2 instance type to deploy to. Only available for jobs running on kubernetes. | 
| cancel_timeout | integer optional. The amount of time (in seconds) to wait before forcibly terminating the script. When the script is cancelled, it is first sent a TERM signal. If the script is still running after the timeout, it is sent a KILL signal. Defaults to 0. | 
| docker_image_tag | string optional. The tag of the docker image to pull from DockerHub. | 
| partition_label | string optional. The partition label used to run this object. | 
| running_as_id | integer optional. The ID of the runner of this script. | 
| dbt_project | list optional. A list containing the following elements: 
 | 
| repo_ref | string optional. A git reference specifying an unambiguous version of the file. Can be a branch name, a tag, or the full or shortened SHA of a commit. Defaults to 'main'. | 
| target_database | list optional. A list containing the following elements: 
 | 
A list containing the following elements:
| id | integer, The ID for the script. | 
| name | string, The name of the script. | 
| type | string, The type of the script (e.g SQL, Container, Python, R, JavaScript, dbt) | 
| createdAt | string, The time this script was created. | 
| updatedAt | string, The time the script was last updated. | 
| author | list, A list containing the following elements: 
 | 
| state | string, The status of the script's last run. | 
| finishedAt | string, The time that the script's last run finished. | 
| category | string, The category of the script. | 
| projects | array, An array containing the following fields: 
 | 
| parentId | integer, The ID of the parent job that will trigger this script | 
| userContext | string, "runner" or "author", who to execute the script as when run as a template. | 
| params | array, An array containing the following fields: 
 | 
| arguments | list, Parameter-value pairs to use when running this script. Only settable if this script has defined parameters. | 
| isTemplate | boolean, Whether others scripts use this one as a template. | 
| publishedAsTemplateId | integer, The ID of the template that this script is backing. | 
| fromTemplateId | integer, The ID of the template this script uses, if any. | 
| templateDependentsCount | integer, How many other scripts use this one as a template. | 
| templateScriptName | string, The name of the template script. | 
| links | list, A list containing the following elements: 
 | 
| schedule | list, A list containing the following elements: 
 | 
| notifications | list, A list containing the following elements: 
 | 
| runningAs | list, A list containing the following elements: 
 | 
| nextRunAt | string, The time of the next scheduled run. | 
| timeZone | string, The time zone of this script. | 
| lastRun | list, A list containing the following elements: 
 | 
| myPermissionLevel | string, Your permission level on the object. One of "read", "write", or "manage". | 
| hidden | boolean, The hidden status of the item. | 
| targetProjectId | integer, Target project to which script outputs will be added. | 
| archived | string, The archival status of the requested item(s). | 
| requiredResources | list, A list containing the following elements: 
 | 
| instanceType | string, The EC2 instance type to deploy to. Only available for jobs running on kubernetes. | 
| cancelTimeout | integer, The amount of time (in seconds) to wait before forcibly terminating the script. When the script is cancelled, it is first sent a TERM signal. If the script is still running after the timeout, it is sent a KILL signal. Defaults to 0. | 
| dockerImageTag | string, The tag of the docker image to pull from DockerHub. | 
| partitionLabel | string, The partition label used to run this object. | 
| runningAsId | integer, The ID of the runner of this script. | 
| dbtProject | list, A list containing the following elements: 
 | 
| repoHttpUri | string, The URL of the git repository (e.g., https://github.com/organization/repo_name.git). | 
| repoRef | string, A git reference specifying an unambiguous version of the file. Can be a branch name, a tag, or the full or shortened SHA of a commit. Defaults to 'main'. | 
| targetDatabase | list, A list containing the following elements: 
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.