younifyd
Menu

Update Datasource

Update datasource

PUT/v1/spaces/{space_id}/datasources/{datasource_id}

Use it in a workflow

  1. Add a step and choose the Storyblok connector.
  2. Pick the Update Datasource action (under Datasources).
  3. Fill in the fields below, then reference the result from later steps as {{updateDatasource.response.data}}.

Request

Path parameters

space_idintegerrequired

Numeric ID of the space.

datasource_idintegerrequired

Numeric ID of the datasource.

Request body

Enter the body as JSON in the step's Body field.

datasourceobjectrequired
namestring
slugstring
json
{
  "datasource": {
    "name": "string",
    "slug": "string"
  }
}

Response

Returns 200 with an object. Read it in later steps with {{updateDatasource.response.data.<field>}}.

datasourceobject
json
{
  "datasource": {}
}

Need more? See the Storyblok guide for connection setup and behaviour shared by every action.

Update Datasource — Storyblok — Documentation