Method: Content#create_stage

Defined in:
lib/user/content/content.rb

#create_stage(data) ⇒ Object

Create stage.

Create a stage with data.

Parameters

data

(Hash) – Data to be submitted.

Example

config_json = {
  count: 1
}
event_json = {
  rset: 'DTSTART:20190214T000000Z',
  duration: 1
}
data = {
  title: 'New Stage',
  description: 'New Stage Description',
  config_json: config_json.to_json,
  event_json: event_json.to_json
}
@data = @cxf_user.create_stage(data.to_json)


148
149
150
# File 'lib/user/content/content.rb', line 148

def create_stage(data)
  @client.raw('post', '/content/stages', nil, data)
end