> ## Documentation Index
> Fetch the complete documentation index at: https://docs.serval.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Tag From Subject

> Detach a tag from a subject.



## OpenAPI

````yaml /sections/api-reference/openapi-spec-v2.yaml post /v2/tags/remove-from-subject
openapi: 3.1.0
info:
  title: Serval Public API
  description: Serval Public API
  contact:
    name: Serval
    url: https://serval.com
    email: support@serval.com
  license:
    name: Serval License
    url: https://serval.com/license
  version: 2.0.0
servers:
  - url: https://public.api.serval.com
security:
  - BearerAuth: []
tags:
  - name: Access Policy API
  - name: Access Policy Approval Procedure API
  - name: Access Profile API
  - name: Access Relationship API
  - name: Access Request API
  - name: Agent API
  - name: App Instance API
  - name: App Resource API
  - name: App Resource Role API
  - name: Approval Delegation API
  - name: Approval Request API
  - name: Audit Log API
  - name: Change Blackout API
  - name: Change Model API
  - name: Custom Field API
  - name: Custom Service API
  - name: Entity API
  - name: Entity Field Mapping API
  - name: Entity Ingestion Config API
  - name: Entity Type API
  - name: Folder API
  - name: Group API
  - name: Guidance API
  - name: Help Agent API
  - name: Journey API
  - name: Knowledge API
  - name: Knowledge Base API
  - name: Report API
  - name: SLA API
  - name: Schedule API
  - name: Tag API
  - name: Team API
  - name: Team User API
  - name: Ticket API
  - name: Topic API
  - name: User API
  - name: User Relationship API
  - name: Workflow API
  - name: Workflow Approval Procedure API
  - name: Workflow Run API
paths:
  /v2/tags/remove-from-subject:
    post:
      tags:
        - Tag API
      summary: Remove Tag From Subject
      description: Detach a tag from a subject.
      operationId: svrelay.publicv2.PublicAPIServiceV2.RemoveTagFromSubject
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/svflow.publicapi.RemoveTagFromSubjectRequest
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/svflow.publicapi.RemoveTagFromSubjectResponse
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/connect.error'
      security:
        - BearerAuth: []
components:
  schemas:
    svflow.publicapi.RemoveTagFromSubjectRequest:
      type: object
      properties:
        subjectType:
          $ref: '#/components/schemas/svflow.common.models.TagSubjectType'
          title: subject_type
          x-stainless-terraform-configurability: required
        subjectId:
          type: string
          title: subject_id
          x-stainless-terraform-configurability: required
        tagId:
          type: string
          title: tag_id
          x-stainless-terraform-configurability: required
      title: RemoveTagFromSubjectRequest
      required:
        - subjectType
        - subjectId
        - tagId
      additionalProperties: false
    svflow.publicapi.RemoveTagFromSubjectResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/svflow.pubapimodels.Tag'
          title: data
          x-stainless-terraform-configurability: optional
      title: RemoveTagFromSubjectResponse
      additionalProperties: false
    connect.error:
      type: object
      properties:
        code:
          type: string
          examples:
            - not_found
          enum:
            - canceled
            - unknown
            - invalid_argument
            - deadline_exceeded
            - not_found
            - already_exists
            - permission_denied
            - resource_exhausted
            - failed_precondition
            - aborted
            - out_of_range
            - unimplemented
            - internal
            - unavailable
            - data_loss
            - unauthenticated
          description: >-
            The status code, which should be an enum value of
            [google.rpc.Code][google.rpc.Code].
          x-stainless-terraform-configurability: optional
        message:
          type: string
          description: >-
            A developer-facing error message, which should be in English. Any
            user-facing error message should be localized and sent in the
            [google.rpc.Status.details][google.rpc.Status.details] field, or
            localized by the client.
          x-stainless-terraform-configurability: optional
        detail:
          $ref: '#/components/schemas/google.protobuf.Any'
          x-stainless-terraform-configurability: optional
      title: Connect Error
      additionalProperties: true
      description: >-
        Error type returned by Connect:
        https://connectrpc.com/docs/go/errors/#http-representation
    svflow.common.models.TagSubjectType:
      type: string
      title: TagSubjectType
      enum:
        - TAG_SUBJECT_TYPE_UNSPECIFIED
        - TAG_SUBJECT_TYPE_WORKFLOW
        - TAG_SUBJECT_TYPE_GUIDANCE
        - TAG_SUBJECT_TYPE_APP_INSTANCE
        - TAG_SUBJECT_TYPE_RESOURCE
        - TAG_SUBJECT_TYPE_ENTITLEMENT
      description: >-
        TagSubjectType is the kind of entity a tag is attached to. Mirrors the
        DB
         tag_subject_type enum and keys the polymorphic tag-subject RPCs that replace
         the per-subject tag-attach RPCs.

         Deliberately distinct from AccessRelationshipSubjectType: the two overlap
         but diverge (tags add workflow/guidance; owners add team) and back separate
         DB enums. Unifying them would trade enum type-safety for runtime subset
         validation.
    svflow.pubapimodels.Tag:
      type: object
      properties:
        id:
          type: string
          title: id
          description: The ID of the tag.
          readOnly: true
          x-stainless-terraform-configurability: computed
        name:
          type: string
          title: name
          description: The name of the tag.
          x-stainless-terraform-configurability: optional
        color:
          type: string
          title: color
          description: The color of the tag (CSS color string).
          nullable: true
          x-stainless-terraform-configurability: optional
        iconSlug:
          type: string
          title: icon_slug
          description: The icon slug for the tag.
          nullable: true
          x-stainless-terraform-configurability: optional
        teamId:
          type: string
          title: team_id
          description: The ID of the team that owns this tag.
          readOnly: true
          x-stainless-terraform-configurability: computed
        description:
          type: string
          title: description
          description: A description of the tag.
          x-stainless-terraform-configurability: optional
      title: Tag
      additionalProperties: false
      description: A tag that can be associated with workflows.
    google.protobuf.Any:
      type: object
      properties:
        type:
          type: string
          x-stainless-terraform-configurability: optional
        value:
          type: string
          format: binary
          x-stainless-terraform-configurability: optional
        debug:
          type: object
          additionalProperties: true
          x-stainless-terraform-configurability: optional
      additionalProperties: true
      description: >-
        Contains an arbitrary serialized message along with a @type that
        describes the type of the serialized message.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````