---
raw: true
search:
  tags:
    - Tags
    - POST
seo:
  description: >-
    Creates or updates a team tag revision from declarative configuration and…
    Reference for the POST /v1/teams/{teamId}/tags/apply endpoint in the
    Spacefast API.
sidebar:
  label: Apply declarative team tag configuration
  badge: POST
title: Apply declarative team tag configuration
type: openapi-operation
---
Creates or updates a team tag revision from declarative configuration and can optionally submit or release it.

`POST /v1/teams/{teamId}/tags/apply`

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

- `config` (any, required)
- `title` (string)
- `description` (string | null)
- `submit` (boolean)
- `releaseEnvironment` (string)
- `expectedCurrentRevisionId` (string | null)

Request body example:

```json
{
  "config": null,
  "title": "string",
  "description": "string",
  "submit": false,
  "releaseEnvironment": "production",
  "expectedCurrentRevisionId": "string"
}
```

**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": {
    "revision": {
      "id": "string",
      "tagSetId": "string",
      "revisionNumber": 1,
      "baseRevisionId": "string",
      "status": "draft",
      "title": "string",
      "description": "string",
      "graph": {
        "format": "spacefast.tag_graph.v1",
        "tags": [],
        "triggers": [],
        "variables": [],
        "systemModules": {},
        "consentPolicy": {
          "property1": null,
          "property2": null
        },
        "property1": null,
        "property2": null
      },
      "graphRevision": 1,
      "validation": {
        "valid": true,
        "diagnostics": [
          {
            "code": "string",
            "severity": "info",
            "message": "string",
            "path": "string",
            "provider": "infra",
            "details": {
              "property1": null,
              "property2": null
            },
            "fix": "string",
            "retryable": true
          }
        ],
        "requiredApprovals": [
          "string"
        ],
        "graphRevision": 1
      },
      "effectiveInputDigest": "string",
      "staticDigest": "string",
      "dynamicDigest": "string",
      "sdkRevision": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "publishedAt": "string",
      "immutableAt": "string"
    },
    "validation": {
      "valid": true,
      "diagnostics": [
        {
          "code": "string",
          "severity": "info",
          "message": "string",
          "path": "string",
          "provider": "infra",
          "details": {
            "property1": null,
            "property2": null
          },
          "fix": "string",
          "retryable": true
        }
      ],
      "requiredApprovals": [
        "string"
      ],
      "graphRevision": 1
    },
    "release": {
      "id": "string",
      "tagSetId": "string",
      "environment": "production",
      "revisionId": "string",
      "previousRevisionId": "string",
      "sdkRevision": "string",
      "staticDigest": "string",
      "releaseNotes": "string",
      "releasedAt": "string",
      "artifact": {
        "id": "string",
        "revision": "string",
        "status": "compiling"
      }
    }
  }
}
```
