younifyd
Menu

Update Deployment

Update Deployment Configuration

PATCH/deployments/{provider}

Use it in a workflow

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

Request

Path parameters

providerstringrequired

The deployment provider name (e.g. `vercel`, `netlify`).

One ofvercelnetlify

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

metastring

What metadata to return in the response.

Request body

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

credentialsobject

Updated provider-specific credentials.

optionsobject

Updated provider-specific configuration options.

json
{
  "credentials": {
    "token": "new_token_abc"
  },
  "options": {
    "team_id": "team_abc123"
  }
}

Response

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

dataobject
idstring (uuid)

Unique identifier for the deployment configuration.

providerstring

The deployment provider. One of `vercel` or `netlify`.

One ofvercelnetlify

credentialsobject

Provider-specific credentials (e.g. API token). Stored encrypted.

optionsobject

Provider-specific configuration options.

webhook_idsarray<string>

IDs of webhooks registered with the provider for this config.

webhook_secretstring

Secret used to verify webhook payloads from the provider.

last_synced_atstring (date-time)

Timestamp of the last provider sync.

date_createdstring (date-time)

When this deployment config was created.

json
{
  "data": {
    "id": "8cbb43fe-4cdf-4991-8352-c461779cec02",
    "provider": "vercel",
    "credentials": {
      "token": "abc123"
    },
    "options": {
      "team_id": "team_abc123"
    },
    "webhook_ids": [
      "string"
    ],
    "webhook_secret": "string",
    "last_synced_at": "2025-01-01T00:00:00Z",
    "date_created": "2025-01-01T00:00:00Z"
  }
}

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