-
Notifications
You must be signed in to change notification settings - Fork 414
Projects
Robert Brodie edited this page May 28, 2024
·
3 revisions
See API documentation for available fields.
project = client.Project.build
project.save({ key: 'SAMPLEPROJECT',
name: 'Sample Project',
projectTypeKey: 'business',
leadAccountId: '5e17314b0af0d70e911d3917' })project = client.Project.find('SAMPLEPROJECT')
puts projectprojects = client.Project.all
projects.each do |project|
puts "Project -> key: #{project.key}, name: #{project.name}"
endproject = client.Project.find('SAMPLEPROJECT')
project.deleteproject = client.Project.find('SAMPLEPROJECT')
project.save({ name: 'Sample Project (Updated)' })