Cloudsmith broadcasts API

The broadcasts API from Cloudsmith — 1 operation(s) for broadcasts.

OpenAPI Specification

cloudsmith-broadcasts-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  title: Cloudsmith API (v1) audit-log broadcasts API
  description: The API to the Cloudsmith Service
  termsOfService: https://help.cloudsmith.io
  contact:
    name: Cloudsmith Support
    url: https://help.cloudsmith.io
    email: support@cloudsmith.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: v1
host: api.cloudsmith.io
basePath: /
schemes:
- https
consumes:
- application/json
produces:
- application/json
security:
- apikey: []
- basic: []
tags:
- name: broadcasts
paths:
  /broadcasts/{org}/broadcast-token/:
    parameters:
    - name: org
      in: path
      required: true
      type: string
    post:
      operationId: broadcasts_create_broadcast_token
      summary: Create a broadcast token.
      description: Create a broadcast token.
      parameters:
      - name: data
        in: body
        required: false
        schema:
          $ref: '#/definitions/BroadcastTokenInput'
      responses:
        '201':
          description: Created
          schema:
            $ref: '#/definitions/BroadcastToken'
        '200':
          description: OK
          schema:
            $ref: '#/definitions/BroadcastToken'
        '422':
          description: Entitlement token parameter is required.
          schema:
            $ref: '#/definitions/ErrorDetail'
        '404':
          description: Entitlement token not found
          schema:
            $ref: '#/definitions/ErrorDetail'
        '400':
          description: Request could not be processed (see detail).
          schema:
            $ref: '#/definitions/ErrorDetail'
      tags:
      - broadcasts
definitions:
  ErrorDetail:
    required:
    - detail
    type: object
    properties:
      detail:
        title: Detail
        description: An extended message for the response.
        type: string
        minLength: 1
      fields:
        title: Fields
        description: 'A Dictionary of related errors where key: Field and value: Array of Errors related to that field'
        type: object
        additionalProperties:
          type: array
          items:
            type: string
            minLength: 1
  BroadcastToken:
    type: object
    properties:
      expires_at:
        title: Expires at
        type: string
        format: date-time
        readOnly: true
      token:
        title: Token
        type: string
        readOnly: true
        minLength: 1
  BroadcastTokenInput:
    required:
    - entitlement_token
    type: object
    properties:
      entitlement_token:
        title: Entitlement token
        description: Repository entitlement token used to authorize the creation of a broadcast token
        type: string
        minLength: 1
      expires_in:
        title: Expires in
        description: Token expiry time in seconds (optional, defaults to 3600 seconds)
        type: integer
        minimum: 1
securityDefinitions:
  apikey:
    type: apiKey
    name: X-Api-Key
    in: header
  basic:
    type: basic