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

# Detach Source Route

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

## 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
  - 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

---

[API](https://skmtc.dev/getauctor/apis/fastapi.md) · [All operations](https://skmtc.dev/getauctor/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getauctor/fastapi/revisions/aeb6faa3b8f0/schema)
