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 submited.

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 = @mints_user.create_stage(data.to_json)

203
204
205
# File 'lib/user/content/content.rb', line 203

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