Skip to Content
CerebrumDocs
GuidesAPI referenceTrust & security

Create Beam Input Type

Related workflow: Working with Beams and credentials

POST
/v1/beam-input-type

Register a new beam input type definition for a beam.

Behavior

  • The slug is generated from the beam name and the version is 1.0.0.

Related: Get Beam · Create Credential

Authorization

apiKey
headerapikey<token>

Request Body

application/json
  1. body
schema*object

JSON schema that describes the Beam input data

beamId*string

The id of the Beam to attach the input type to

Response Body

Beam input type created; returns its ID and generated slug.

application/json
  1. response
beamInputTypeId*string

The id of the created BeamInputType

beamInputTypeSlug*string

The slug of the created BeamInputType, used to identify different versions of the same input

Example Request
curl -X POST 'https://api.cerebrum.com/v1/beam-input-type' \  -H 'apikey: CEREBRUM_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "schema": {},  "beamId": "string"}'
Example Response
{  "beamInputTypeId": "string",  "beamInputTypeSlug": "string"}