---
title: "Detach Source Route"
method: POST
path: "/api/py/delivery/sources/detach"
---

# Detach Source Route

`POST /api/py/delivery/sources/detach`

## Request

- Base URL: `https://api.getauctor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getauctor.com/api/py/delivery/sources/detach`
- Auth: none declared

## Request body

- union
  - SalesforceOrgDetachBody
    - `source_type` 'salesforce_org', required
    - `instance_source_id` string, uuid, required
  - GithubRepoDetachBody
    - `source_type` 'github_repo', required
    - `instance_source_id` string, uuid, required
  - NetsuiteAccountDetachBody
    - `source_type` 'netsuite_account', required
    - `instance_source_id` string, uuid, required
  - ServicenowInstanceDetachBody
    - `source_type` 'servicenow_instance', required
    - `instance_source_id` string, uuid, required
  - AtlassianOrgDetachBody
    - `source_type` 'atlassian_org', required
    - `instance_source_id` string, uuid, required
  - AtlassianAdminDetachBody
    - `source_type` 'atlassian_admin', required
    - `instance_source_id` string, uuid, required
  - WorkdayTenantDetachBody
    - `source_type` 'workday_tenant', required
    - `instance_source_id` string, uuid, required
  - OnestreamAccountDetachBody
    - `source_type` 'onestream_account', required
    - `instance_source_id` string, uuid, required
  - QuickbooksApplicationDetachBody
    - `source_type` 'quickbooks_application', required
    - `instance_source_id` string, uuid, required
  - SuccessFactorsInstanceDetachBody
    - `source_type` 'successfactors_instance', required
    - `instance_source_id` string, uuid, required
  - SapCloudAlmTenantDetachBody
    - `source_type` 'sap_cloud_alm_tenant', required
    - `instance_source_id` string, uuid, required
  - StaticCredentialsDetachBody
    - `source_type` 'static_credentials', required
    - `instance_source_id` string, uuid, required
  - HubspotAccountDetachBody
    - `source_type` 'hubspot_account', required
    - `instance_source_id` string, uuid, required

## Response `200`

Successful Response

- DetachedSourceResponse
  - `id` string, uuid, required
  - `source_type` string, required
  - `delivery_instance_id` string, uuid, required
  - `organization_id` string, required
  - `status` string, required
  - `credential_kind` string, nullable, required
  - `external_org_id` string, nullable, required
  - `external_my_domain_url` string, nullable, required
  - `environment` string, nullable, required
  - `created_at` string, required
  - `updated_at` string, required
  - `credential_deleted` boolean, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-14** `5c801d686c91`: 1 info
  - added `#/components/schemas/StaticCredentialsDetachBody` to the request body `anyOf` list
- **2026-10-07** `5e1e3d888189`: 1 info
  - added `#/components/schemas/SapCloudAlmTenantDetachBody` to the request body `anyOf` list
- **2026-10-02** `c547e282a5ec`: 1 info
  - added `#/components/schemas/SuccessFactorsInstanceDetachBody` to the request body `anyOf` list
- **2026-10-01** `80a29df13724`: 1 info
  - added `#/components/schemas/OnestreamAccountDetachBody, #/components/schemas/QuickbooksApplicationDetachBody` to the request body `anyOf` list
- **2026-09-01** `aeb6faa3b8f0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getauctor/apis/getauctor-api/changes/api/py/delivery/sources/detach/post.md)

---

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