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

# Set or clear the billing license for a target type



## OpenAPI

````yaml https://api.wirespeed.co/v1/openapi.json post /v1/team/billing-license
openapi: 3.0.0
info:
  title: Wirespeed API
  description: The public Wirespeed API. v1 is the first stable contract.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.wirespeed.co
security: []
tags: []
paths:
  /v1/team/billing-license:
    post:
      tags:
        - Team
      summary: Set or clear the billing license for a target type
      operationId: TeamController_setBillingLicense
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetBillingLicenseDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
      security:
        - bearer: []
components:
  schemas:
    SetBillingLicenseDto:
      type: object
      properties:
        licenseId:
          type: string
          description: License ID to set as billing source, or null to clear
          nullable: true
          format: uuid
        licenseTarget:
          type: string
          description: License target type
          enum:
            - USER
            - ENDPOINT
      required:
        - licenseId
        - licenseTarget
    Team:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the team
        name:
          type: string
          description: Name of the team
        demo:
          type: boolean
          description: Whether this is a demo team
        refreshable:
          type: boolean
          description: Whether this demo team is automatically deleted and recreated weekly
        testMode:
          type: boolean
          description: Whether the team is in test mode
        chatOpsWelcomeMessage:
          type: string
          description: Welcome message for ChatOps workflows
        platformName:
          type: string
          description: Platform name to use for service provider clients
        maxChatOpsPerDay:
          type: number
          description: Maximum ChatOps operations allowed per day
        maxAutoContainmentsPerDay:
          type: number
          description: Maximum automatic containments allowed per day
        chatOpsEscalationDelayMinutes:
          type: number
          description: Delay in minutes before escalating ChatOps failures
        monitorHours:
          type: number
          description: How long monitors run for this team, in hours
        identityAutoContainment:
          type: boolean
          description: Whether automatic identity containment is enabled
        endpointAutoContainment:
          type: boolean
          description: Whether automatic endpoint containment is enabled
        fileAutoContainment:
          type: boolean
          description: Whether automatic file containment is enabled
        escalationEmails:
          description: >-
            Deprecated — escalation emails are now stored in
            notification_subscription. Use GET
            /notification/subscription/team-channel?type=NEW_CASE_ESCALATION
            instead.
          deprecated: true
          type: array
          items:
            type: string
        escalationSubscriptionEmails:
          description: >-
            Lists new case escalation subscription emails for this team: the
            team's own emails plus any emails inherited from the parent Service
            Provider.
          type: array
          items:
            type: string
        logoUrl:
          type: string
          description: URL of the team logo
        chatOpsSecondFactor:
          type: boolean
          description: Whether ChatOps requires second factor authentication
        chatOpsAccountLockedMessage:
          type: string
          description: Message to display when ChatOps account is locked
        createdAt:
          type: string
          description: Timestamp when the team was created
        richCaseNotifications:
          type: boolean
          description: >-
            Deprecated — escalation rich-formatting is now stored per recipient
            in notification_subscription.
          deprecated: true
        escalationSubjectLine:
          type: string
          description: >-
            Deprecated — the escalation subject is now stored per recipient in
            notification_subscription (null → scope-aware per-type default).
          deprecated: true
        managerChatOps:
          type: boolean
          description: Whether manager ChatOps is enabled
        emailSignature:
          type: string
          description: Signature for ChatOps communications
        chatOpsSubjectLine:
          type: string
          description: Subject line for ChatOps communications
        chatOpsWelcomeMessageInherited:
          type: boolean
        emailSignatureInherited:
          type: boolean
        chatOpsSubjectLineInherited:
          type: boolean
        chatOpsAccountLockedMessageInherited:
          type: boolean
        serviceProvider:
          type: boolean
          description: Whether this team is a service provider
        parentTeamName:
          type: string
          description: Name of the parent team if this is a sub-team
        parentTeamId:
          type: string
          description: ID of the parent team if this is a sub-team
        parentServiceProvider:
          type: boolean
          description: Whether the parent team is a service provider (null when no parent)
        operatingTeam:
          type: boolean
          description: Whether this is an operating team for service providers
        useChatOpsOnboardingGroup:
          type: boolean
          description: Whether to use the ChatOps onboarding group
        chatOpsAllowBulkSmsInvite:
          type: boolean
          description: Whether to allow bulk SMS invites without limit checks
        billableUsers:
          type: number
          description: The number of billable users for the team
        billableEndpoints:
          type: number
          description: The number of billable endpoints for the team
        teamMembers:
          type: number
          description: >-
            The number of team members where the team is their parent team
            (excluding external members)
        supportEmail:
          type: string
          description: Support email for service provider customers to use
        address:
          type: string
          description: Address for the team, typically used in email footers
        autoSubscribeServiceProviderUsers:
          type: boolean
          default: true
          description: >-
            Whether to auto-subscribe service provider users to notifications
            for this team
        sku:
          type: string
          enum:
            - identity
            - adr
          description: Subscription SKU tier for the team
        addOns:
          type: array
          description: Active add-on SKUs for the team
          items:
            type: string
            enum:
              - data
        skuStartDate:
          type: string
          description: Contract/subscription start date
        skuEndDate:
          type: string
          description: Contract/subscription end date
        isTrial:
          type: boolean
          description: Whether this team is a proof-of-value trial
        skipThirdPartyManagedSourceUpdates:
          type: boolean
          description: >-
            Whether to skip source system updates for detections managed by a
            third party (e.g. Falcon Complete)
        onboardingChecklistCompleted:
          type: boolean
          description: Whether the team has completed the onboarding checklist
        onboardingChecklistDismissed:
          type: boolean
          description: >-
            Whether the team has dismissed the onboarding checklist from the
            homepage
        billingUserLicenseId:
          type: string
          nullable: true
          description: License ID used for billing user counts (null = derived counting)
        billingEndpointLicenseId:
          type: string
          nullable: true
          description: >-
            License ID used for billing endpoint counts (null = derived
            counting)
      required:
        - id
        - name
        - demo
        - refreshable
        - testMode
        - chatOpsEscalationDelayMinutes
        - monitorHours
        - identityAutoContainment
        - endpointAutoContainment
        - fileAutoContainment
        - escalationEmails
        - escalationSubscriptionEmails
        - logoUrl
        - chatOpsSecondFactor
        - chatOpsAccountLockedMessage
        - createdAt
        - richCaseNotifications
        - managerChatOps
        - emailSignature
        - chatOpsSubjectLine
        - autoSubscribeServiceProviderUsers
        - sku
        - addOns
        - isTrial
        - skipThirdPartyManagedSourceUpdates
        - onboardingChecklistCompleted
        - onboardingChecklistDismissed
    HttpError:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: number
      required:
        - message
        - statusCode
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````