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

# Save the target keywords of one localization

> Stores up to ten target keywords of one App Store localization in slot order, null for an empty slot, each normalized like a tracked keyword. Empty slots in the middle keep their place and every slot null removes the targets. Every phrase new to the stored list, or every slot with trackMissing, that a market of the app reading the localization does not track yet is tracked there as a manual keyword, a paused one resumed, within the keyword limit of the plan, with its first position check and score queued. A reorder or a removal tracks nothing. A phrase that did not fit is answered in notTracked with its market and keywordLimit, and its slot is stored anyway. A localization no market reads stores its targets and tracks nothing. Answers the targets as the read does, plus tracked, notTracked and quota. Answers 400 for more than ten slots, a duplicate or an invalid phrase (naming its position), an unknown tag and a Google Play or competitor app, 403 with quota and writes nothing when the keyword markets would pass the plan limit meanwhile, and 404 for a missing app.



## OpenAPI

````yaml /api-reference/openapi.json put /apps/{id}/localizations/{localization}/targets
openapi: 3.0.0
info:
  title: asobeast API
  description: >-
    Self-hosted ASO toolkit API. It tracks the apps you import and their
    competitors over time and reads what AsoBeast collected; it is not a bulk
    store lookup.


    A metered instance carries RateLimit-Limit, RateLimit-Remaining and
    RateLimit-Reset on every response, for the tightest limit the request
    touched. A self-hosted instance has no request rate limits and sends no such
    header. Limits are per workspace, so minting more tokens does not buy more
    capacity, and they are sized per plan across three classes: read for stored
    data, write for configuration changes and store for the endpoints that reach
    the App Store or Google Play.


    A 429 carries Retry-After and a rateLimit object naming the window that
    closed, or an aiAllowance object when the workspace has spent the AI calls
    its plan includes this month. A 403 with a quota object means a plan
    capacity limit such as apps or tracked keyword markets, which is a different
    problem from a rate limit. A 402 with an entitlement object means the
    workspace needs a plan.


    Positions are 1-based and null means checked but not found within the
    captured depth, never zero. Daily granularity uses UTC dates.
  version: 2.0.0
  contact: {}
servers:
  - url: http://localhost:3000/api/backend
    description: Web origin proxy
  - url: http://localhost:4000
    description: Direct API
security:
  - personalApiToken: []
tags: []
paths:
  /apps/{id}/localizations/{localization}/targets:
    put:
      tags:
        - keywords
      summary: Save the target keywords of one localization
      description: >-
        Stores up to ten target keywords of one App Store localization in slot
        order, null for an empty slot, each normalized like a tracked keyword.
        Empty slots in the middle keep their place and every slot null removes
        the targets. Every phrase new to the stored list, or every slot with
        trackMissing, that a market of the app reading the localization does not
        track yet is tracked there as a manual keyword, a paused one resumed,
        within the keyword limit of the plan, with its first position check and
        score queued. A reorder or a removal tracks nothing. A phrase that did
        not fit is answered in notTracked with its market and keywordLimit, and
        its slot is stored anyway. A localization no market reads stores its
        targets and tracks nothing. Answers the targets as the read does, plus
        tracked, notTracked and quota. Answers 400 for more than ten slots, a
        duplicate or an invalid phrase (naming its position), an unknown tag and
        a Google Play or competitor app, 403 with quota and writes nothing when
        the keyword markets would pass the plan limit meanwhile, and 404 for a
        missing app.
      operationId: LocalizationsController_saveTargets
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: localization
          required: true
          in: path
          schema:
            enum:
              - id
              - ru
              - th
              - de
              - fr
              - ar
              - pa
              - sv
              - it
              - pl
              - bn
              - ca
              - zh-Hans
              - zh-Hant
              - hr
              - cs
              - da
              - nl
              - en-AU
              - en-CA
              - en-GB
              - en-US
              - fi
              - fr-CA
              - el
              - gu
              - he
              - hi
              - hu
              - ja
              - kn
              - ko
              - ms
              - ml
              - mr
              - 'no'
              - or
              - pt-BR
              - pt-PT
              - ro
              - sk
              - sl
              - es-MX
              - es-ES
              - ta
              - te
              - tr
              - uk
              - ur
              - vi
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListingTargetsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
components:
  schemas:
    ListingTargetsDto:
      type: object
      properties:
        slots:
          type: array
          maxItems: 10
          items:
            type: string
            nullable: true
          example:
            - habit tracker
            - focus timer
            - null
            - sleep sounds
          description: >-
            The target keywords in slot order, null for an empty slot. Slot 1 is
            meant for the title and slots 2 and 3 for the subtitle.
        trackMissing:
          type: boolean
          description: >-
            Track every slot in every market reading the localization that does
            not track it yet, not only the phrases new to the stored list.
      required:
        - slots
  securitySchemes:
    personalApiToken:
      scheme: bearer
      bearerFormat: asob
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.