Method: Content#update_stage

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

#update_stage(id, data) ⇒ Object

Update stage.

Update a stage info.

Parameters

id

(Integer) – Stage id.

data

(Hash) – Data to be submitted.

Example

config_json = {
  count: 2
}
event_json = {
  rset: 'DTSTART:20190214T000000Z',
  duration: 2
}
data = {
  stageProps: {
    title: 'New Stage Modified',
    description: 'New Stage Description Modified'
  },
  config_json: config_json.to_json,
  event_json: event_json.to_json
}
@data = @cxf_user.update_stage(3, data.to_json)


176
177
178
179
# File 'lib/user/content/content.rb', line 176

def update_stage(id, data)
  # TODO: Inform StageController.update method has been modified
  @client.raw('put', "/content/stages/#{id}", nil, data)
end