Mavrck Upload Policy API

The uploadPolicy API from Mavrck — 1 operation(s) for uploadpolicy.

OpenAPI Specification

mavrck-uploadpolicy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  description: Identify your most influential customers and activate them to drive more conversions on social.
  title: MAVRCK.IO Upload Policy API
servers:
- url: http://app.splashscore.com/v1
- url: https://app.splashscore.com/v1
security:
- apiKey: []
tags:
- name: uploadPolicy
paths:
  /v1/upload-policy:
    post:
      operationId: uploadPolicy
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SigningData'
        '403':
          description: Access forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '404':
          description: The resource does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
        '500':
          description: Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
      tags:
      - uploadPolicy
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FileUploadPoliciesPostBody'
        required: true
components:
  schemas:
    SigningData:
      properties:
        signature:
          type: string
        policy:
          type: string
        bucket:
          type: string
        awsKey:
          type: string
      required:
      - signature
      - policy
      - bucket
      - awsKey
      type: object
    FileUploadPoliciesPostBody:
      properties:
        fileName:
          type: string
      required:
      - fileName
      type: object
      additionalProperties: false
    ForbiddenError:
      properties:
        message:
          type: string
          enum:
          - Access Forbidden
        details:
          properties: {}
          additionalProperties:
            additionalProperties: true
          type: object
      required:
      - message
      - details
      type: object
      additionalProperties: false
    ServerError:
      properties:
        message:
          type: string
          enum:
          - Server Error
        details:
          properties: {}
          additionalProperties:
            additionalProperties: true
          type: object
      required:
      - message
      - details
      type: object
      additionalProperties: false
    NotFoundError:
      properties:
        message:
          type: string
          enum:
          - Resource Not Found
        details:
          properties: {}
          additionalProperties:
            additionalProperties: true
          type: object
      required:
      - message
      - details
      type: object
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: apiKey
      name: api-key
      in: header