---
title: "Unlink resource from team"
method: POST
path: "/teams/{team_id}/unlinkResource"
---

# Unlink resource from team

`POST /teams/{team_id}/unlinkResource`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/teams/{team_id}/unlinkResource`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `teams:write`

Unlink resource from team

## Path parameters

- `team_id` integer, required

## Request body

- object: One of these fields is required: repo_id, cloud_id, image_id, zen_app_id
  - `repo_id` integer: The id of a repo to unlink.
  - `cloud_id` integer: The id of a cloud to unlink.
  - `image_id` integer: The id of an image to unlink.
  - `domain_id` integer: The id of a domain to unlink.
  - `zen_app_id` integer: The id of a zen app to unlink.

## Response `200`

The resource has successfully been unlinked from the team

- object
  - `success` integer: The integer 1 indicating success

## Other responses

- `400`: One or more of the provided fields are invalid.

---

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