> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mage.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update block

`PUT /api/pipelines/:pipeline_uuid/blocks/:block_uuid`

**name** `string` *required*

Human readable block name. This is used to generate the UUID, e.g. `restless dust`. Names will be slugified to a safe-uuid.

**type** `string` *required*

Type of block:
`callback`, `chart`, `conditional`, `custom`, `data_exporter`, `data_loader`, `dbt`, `extension`, `global_data_product`, `markdown`, `scratchpad`, `sensor`, `transformer`

**bookmark\_values** `[string]`

Data integration bookmark values as a list of strings.

**callback\_blocks** `[string]`

Array of [callback](https://docs.mage.ai/development/blocks/callbacks) block objects. Same shape as `blocks`.

**color** `string`

Block color displayed by the frontend. If omitted or not recognized, the frontend uses the block type's default color.

**configuration** `object`

Miscellaneous configuration settings for the block.

**properties**

**data\_provider** `string`

Database or data warehouse for the SQL block to connect to.

**data\_provider\_database** `string`

Database name to use when saving the output of the SQL block.

**data\_provider\_profile** `string`

Profile target for the dbt block.

**data\_provider\_schema** `string`

Schema name to use when saving the output of the SQL block.

**data\_provider\_table** `string`

Table name to use when saving the output of the SQL block.

**export\_write\_policy** `string`

Whether to `replace` the existing table of the SQL block output, `append`, or
raise an error and `fail`.

**use\_raw\_sql** `string`

Toggle writing raw SQL in the block. Read more [here](https://docs.mage.ai/guides/blocks/sql-blocks.md#using-raw-sql).

**content** `string`

The content of block formatted as a string. Use `/n` for newlines. Omitting will create an empty block.

**destination\_table** `string`

The destination table for a data integration pipeline.

**downstream\_blocks** `[string]`

Array of blocks downstream from the created block.

**executor\_config** `object`

Used when configuring a Kubernetes executor. See the [Kubernetes config](https://docs.mage.ai/production/configuring-production-settings/compute-resource.md#2-set-executor-type-and-customize-the-compute-resource-of-the-mage-executor) page for more details

**executor\_type** `string`

Used when configuring a Kubernetes executor. See the [Kubernetes config](https://docs.mage.ai/production/configuring-production-settings/compute-resource.md#2-set-executor-type-and-customize-the-compute-resource-of-the-mage-executor) page for more details

**extension\_uuid** `string`

UUID of extensions, currently [Great Expectations](https://docs.mage.ai/development/testing/great-expectations) is the only extension supported.

**language** `string`

The block language:
`python`, `sql`, `r`, `yaml`, `markdown`

**pipelines** `[string]`

Array of strings containing the pipeline uuids for which the block is a member.

**retry\_config** `object`

The configuration for block retry logic. See the [pipeline runs](https://docs.mage.ai/orchestration/pipeline-runs/retrying-block-runs.md) docs for retry config examples.

**tap\_stream\_id** `string`

The block tap stream ID for data integration pipelines.

**upstream\_blocks** `[string]`

An array of strings representing the uuids of upstream blocks (the blocks on which the new block depends). For example, `["a", "b"]` will create a block that depends on blocks `a` and `b`.

**uuid** `string`

The unique id of the block. This is generated from `name`, so it's not necessary to populate this field.

```bash Request theme={"system"}
curl --location --request PUT 'http://localhost:6789/api/pipelines/broken_wave/blocks/solitary_silence' \
--header 'Cookie: oauth_token=long_token_string' \
--header 'Content-Type: text/plain' \
--header 'X-API-KEY: zkWlN0PkIKSN0C11CfUHUj84OT5XOJ6tDZ6bDRO2' \
--data '{
 "block": {
   "color": "teal"
 }
}'
```

```json Response theme={"system"}
{
    "block": {
        "all_upstream_blocks_executed": true,
        "color": "teal",
        "configuration": {},
        "downstream_blocks": [],
        "executor_config": null,
        "executor_type": "local_python",
        "has_callback": false,
        "name": "solitary silence",
        "language": "python",
        "retry_config": null,
        "status": "not_executed",
        "type": "data_loader",
        "upstream_blocks": [],
        "uuid": "solitary_silence",
        "content": "some_long_content_string"
    }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.