---
title: "Update a signature"
method: PATCH
path: "/signatures/{id}"
tags: ["Signatures"]
---

# Update a signature

`PATCH /signatures/{id}`

## Request

- Base URL: `https://www.sociahive.com/api/v1`
- URL: `https://www.sociahive.com/api/v1/signatures/{id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - OAuth 2 (authorization code, authorization URL `/api/oauth/authorize`, token URL `/api/oauth/token`, scopes: `posts:write`)

Send any of the create fields. Behind the SCHEDULER_SIGNATURES feature flag (403 `feature_disabled` while off).

## Path parameters

- `id` string, required: MongoDB ObjectId (24-character hex string)

## Request body

- UpdateSignatureRequest
  - `name` string
  - `text` string
  - `account_ids` union: Default `"all"`.
    - 'all'
    - string[]
  - `is_default` boolean: Default false. Saving a default turns off the defaults it would compete with.

## Response `200`

Signature updated

- object
  - `success` true, required
  - `data` Signature, required
    - `id` string, required: MongoDB ObjectId (24-character hex string)
    - `name` string, required
    - `text` string, required: Appended after a blank line at publish.
    - `account_ids` union, required: `"all"` applies to every connected account; otherwise the connected-account ids it applies to.
      - 'all'
      - string[]
    - `is_default` boolean, required: Added to every post on its accounts unless the post picks another signature or `none`. A default for one account wins over a default for all.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request — invalid parameters
- `401`: Authentication required — provide X-API-Key or Bearer token
- `403`: Insufficient scope for this operation
- `404`: Signature not found
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/sociahive/apis/sociahive-api.md) · [All operations](https://skmtc.dev/sociahive/apis/sociahive-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sociahive/apis/sociahive-api/revisions/791b8548d288?raw)
