---
raw: true
search:
  tags:
    - Teams
    - PATCH
seo:
  description: >-
    Turns one preset team skill on or off for every agent on the… Reference for
    the PATCH /v1/teams/{teamId}/skills/{skillKey} endpoint in the Spacefast
    API.
sidebar:
  label: Turn a team skill on or off
  badge: PATCH
title: Turn a team skill on or off
type: openapi-operation
---
Turns one preset team skill on or off for every agent on the team. Only team owners and admins can change skills; agents cannot.

`PATCH /v1/teams/{teamId}/skills/{skillKey}`

**Request body** (`application/json`, required)

- `enabled` (boolean, required) — Turn the skill on or off for the whole team.

Request body example:

```json
{
  "enabled": true
}
```

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "key": "seo",
    "title": "string",
    "summary": "string",
    "inspiredBy": "string",
    "sections": [
      {
        "heading": "When this applies",
        "items": [
          "string"
        ]
      }
    ],
    "setup": {
      "variable": "string",
      "configured": true
    },
    "enabled": true,
    "updatedAt": "2019-08-24T14:15:22Z",
    "updatedBy": {
      "type": "person",
      "userId": "string",
      "connectionId": "string",
      "name": "string"
    }
  }
}
```
