-
Notifications
You must be signed in to change notification settings - Fork 411
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 project
projects = client.Project.all
projects.each do |project|
puts "Project -> key: #{project.key}, name: #{project.name}"
end
project = client.Project.find('SAMPLEPROJECT')
project.delete
project = client.Project.find('SAMPLEPROJECT')
project.save({ name: 'Sample Project (Updated)' })