PUT
/
organisations
/
{organisationId}
/
schemas
/
{id}
/
components
/
{ref}
curl --request PUT \
  --url https://api.switchboard.svc.versori.io/v1alpha1/organisations/{organisationId}/schemas/{id}/components/{ref} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "definition": {},
  "ref": "<string>",
  "schemaId": "<string>"
}'
{
  "definition": {},
  "ref": "<string>",
  "schemaId": "<string>"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organisationId
string
required
id
string
required
ref
string
required

Body

application/json
definition
object
required

The definition of the schema object following OpenAPI specification.

ref
string
required

The ref of the schema object, for OpenAPI this will be how operations ref to this object with the ref field.

schemaId
string

The ID of the schema this object belongs to.

Response

200 - application/json
definition
object
required

The definition of the schema object following OpenAPI specification.

ref
string
required

The ref of the schema object, for OpenAPI this will be how operations ref to this object with the ref field.

schemaId
string

The ID of the schema this object belongs to.