Docupilot personalization API

The personalization API from Docupilot — 1 operation(s) for personalization.

OpenAPI Specification

docupilot-personalization-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Docupilot accounts APIs ai personalization API
  version: '1.0'
  description: Docupilot accounts APIs
  termsOfService: https://docupilot.app/terms-and-conditions/
  contact:
    name: Team Docupilot
    email: support@docupilot.app
tags:
- name: personalization
paths:
  /dashboard/api/v2/personalization/:
    get:
      operationId: get_user_personalization
      parameters:
      - in: header
        name: X-Workspace
        schema:
          type: string
        description: Workspace unique_key
        required: true
      tags:
      - personalization
      security:
      - SessionAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserPersonalization'
          description: ''
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthenticatedError'
          description: ''
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
          description: ''
    post:
      operationId: update_user_personalization
      parameters:
      - in: header
        name: X-Workspace
        schema:
          type: string
        description: Workspace unique_key
        required: true
      tags:
      - personalization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserPersonalization'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UserPersonalization'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/UserPersonalization'
      security:
      - SessionAuthentication: []
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
          description: ''
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthenticatedError'
          description: ''
components:
  schemas:
    UnauthenticatedError:
      type: object
      properties:
        detail:
          type: string
      required:
      - detail
      description: ''
    ValidationError:
      type: object
      properties:
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        non_field_errors:
          type: array
          items:
            type: string
      required:
      - errors
      - non_field_errors
      description: ''
    ForbiddenError:
      type: object
      properties:
        detail:
          type: string
      required:
      - detail
      description: ''
    UserPersonalization:
      type: object
      properties:
        ui_version:
          enum:
          - 1
          - 2
          type: integer
        list_view:templates:
          $ref: '#/components/schemas/UserPersonalizationListViewTemplate'
        tp:freshchat:restoreId:
          type: string
          format: uuid
      description: ''
    UserPersonalizationListViewTemplate:
      type: object
      properties:
        type:
          enum:
          - card
          - template
          type: string
      required:
      - type
      description: ''
  securitySchemes:
    OAuthAuthentication:
      type: http
      scheme: bearer
      description: OAuth2 Bearer Token Authentication
    SessionAuthentication:
      type: apiKey
      in: cookie
      name: sessionid
      description: browser based login takes care of this
externalDocs:
  description: Help docs on how to use API
  url: https://help.docupilot.app/developers/api-overview