# SuccessResponse

The legacy success envelope, returned by the pre-existing CRUD routes.

It always carries HTTP 200; the outcome is in `code`/`type`, not the status
line. Newer endpoints return the resource directly instead.

Type: object

Fields typed as another model are documented on that model's page; fetch it before filling the field.

| Field | Type | Required | Description | Allowed values / default / constraints |
| --- | --- | --- | --- | --- |
| `code` | integer | no | Result code. 1 means the operation succeeded. | default: `1` |
| `type` | string | no | Kind of result — `success` for this envelope. | default: `"success"` |
| `message` | string | no | Human-readable confirmation of what happened. | default: `"OK"` |

## Used by

- [DELETE /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#delete-rest-beta-automations-id)
- [DELETE /rest/beta/workflows/{id}](https://dev-api.sheetgo.com/rest/reference/workflows.md#delete-rest-beta-workflows-id)
- [DELETE /rest/beta/workflows/{workflow_id}/forms/{form_id}](https://dev-api.sheetgo.com/rest/reference/forms.md#delete-rest-beta-workflows-workflow-id-forms-form-id)
- [POST /rest/beta/automations/run/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#post-rest-beta-automations-run-id)
- [POST /rest/beta/automations/{id}/run](https://dev-api.sheetgo.com/rest/reference/automations.md#post-rest-beta-automations-id-run)
- [POST /rest/beta/workflows/run/{id}](https://dev-api.sheetgo.com/rest/reference/workflows.md#post-rest-beta-workflows-run-id)
- [POST /rest/beta/workflows/{id}/run](https://dev-api.sheetgo.com/rest/reference/workflows.md#post-rest-beta-workflows-id-run)

---

More: start page https://dev-api.sheetgo.com/rest/reference.md, everything in one file https://dev-api.sheetgo.com/rest/llms-full.txt, OpenAPI https://dev-api.sheetgo.com/rest/openapi.json.
