Rapidata GlobalText API

The GlobalText API from Rapidata — 2 operation(s) for globaltext.

OpenAPI Specification

rapidata-globaltext-api-openapi.yml Raw ↑
openapi: 3.0.4
info:
  title: Rapidata Asset GlobalText API
  description: The API for the Rapidata Asset service
  version: v1
servers:
- url: https://api.rapidata.ai/
tags:
- name: GlobalText
  x-displayName: GlobalText
paths:
  /global-text:
    post:
      tags:
      - GlobalText
      summary: Creates a new global text entry.
      requestBody:
        description: The payload describing the entry to create.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateGlobalTextEndpoint_Input'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateGlobalTextEndpoint_Output'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationProblemDetails'
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
      security:
      - OpenIdConnect:
        - openid
        - profile
        - email
        - offline_access
    get:
      tags:
      - GlobalText
      summary: Returns every global text entry.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAllGlobalTextsEndpoint_Output'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationProblemDetails'
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
      security:
      - OpenIdConnect:
        - openid
        - profile
        - email
        - offline_access
  /global-text/{globalTextId}:
    delete:
      tags:
      - GlobalText
      summary: Deletes a global text entry.
      parameters:
      - name: globalTextId
        in: path
        description: The id of the global text entry to delete.
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationProblemDetails'
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
      security:
      - OpenIdConnect:
        - openid
        - profile
        - email
        - offline_access
    patch:
      tags:
      - GlobalText
      summary: Updates a global text entry using patch semantics.
      parameters:
      - name: globalTextId
        in: path
        description: The id of the global text entry to update.
        required: true
        schema:
          type: string
      requestBody:
        description: The patch payload describing which fields should change.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateGlobalTextEndpoint_Input'
        required: true
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationProblemDetails'
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
      security:
      - OpenIdConnect:
        - openid
        - profile
        - email
        - offline_access
components:
  schemas:
    GetAllGlobalTextsEndpoint_Output_Item:
      required:
      - id
      - key
      - englishText
      type: object
      properties:
        id:
          type: string
        key:
          type: string
        englishText:
          type: string
    GetAllGlobalTextsEndpoint_Output:
      required:
      - globalTexts
      type: object
      properties:
        globalTexts:
          allOf:
          - type: array
            items:
              $ref: '#/components/schemas/GetAllGlobalTextsEndpoint_Output_Item'
          description: The list of global text entries.
    ValidationProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    CreateGlobalTextEndpoint_Input:
      required:
      - key
      - englishText
      type: object
      properties:
        key:
          type: string
          description: The human-readable key used to look up the text from translations.
        englishText:
          type: string
          description: The English source text that all translations derive from.
    CreateGlobalTextEndpoint_Output:
      required:
      - globalTextId
      type: object
      properties:
        globalTextId:
          type: string
          description: The unique identifier of the created global text entry.
    UpdateGlobalTextEndpoint_Input:
      type: object
      properties:
        key:
          type: string
          description: The new key for the global text entry.
        englishText:
          type: string
          description: The new English source text for the global text entry.
  securitySchemes:
    OpenIdConnect:
      type: openIdConnect
      description: OpenID Connect connection flow
      openIdConnectUrl: https://auth.rapidata.ai/.well-known/openid-configuration
x-tagGroups:
- name: Rapidata Asset API
  tags:
  - Asset
  - BatchUpload
- name: Rapidata Audience API
  tags:
  - Audience
  - Examples
- name: Rapidata Campaign API
  tags:
  - Cache
  - Campaign
  - ExternalAudience
- name: Rapidata Dataset API
  tags:
  - ContextShortening
  - Datapoints
  - Dataset
  - DatasetGroup
- name: Rapidata Flow API
  tags:
  - Flow
  - FlowItem
  - RankingFlow
  - RankingFlowItem
- name: Rapidata Identity API
  tags:
  - Rapidata.Identity.API
  - Client
  - Customer
  - Identity
  - Newsletter
  - Organization
  - Survey
- name: Rapidata Leaderboard API
  tags:
  - Benchmark
  - SampleGeneration
  - Faucet
  - Replicate
  - Leaderboard
  - Participant
  - Prompt
  - Sample
- name: Rapidata Order API
  tags:
  - Feedback
  - Job
  - Order
- name: Rapidata Payment API
  tags:
  - Billing
  - ExternalServicePrices
  - Reconciliation
  - Settings
  - VolumeDiscount
  - BillingAccount
  - Invoice
  - Payment
- name: Rapidata Pipeline API
  tags:
  - Pipeline
- name: Rapidata Rapid API
  tags:
  - CustomerRapid
  - GlobalText
  - Rapid
  - UserRapid
  - ValidationFeedback
- name: Rapidata Signal API
  tags:
  - Signal
- name: Rapidata Translation API
  tags:
  - Translation
- name: Rapidata Validation API
  tags:
  - ValidationSet
- name: Rapidata Workflow API
  tags:
  - Evaluation
  - GroupedRanking
  - Ranking
  - SimpleWorkflow
  - Workflow