Sha256: aae1650e0731008644e597cf65d9e22e8850d3b70b1301bd12b01dd1f26f069b

Contents?: true

Size: 472 Bytes

Versions: 22

Compression:

Stored size: 472 Bytes

Contents

require_relative 'local_libs'

api = Ecoportal::API::GraphQL.new
response = api.createContractorEntity(input: {
  name: "Caras Galathon",
  active: true,
  approved: true,
  associatedPeopleIds: [
    "5adfbef76fb80400047535b3"
  ],
  leadContractorIds: [
    "5adfbef76fb80400047535b3"
  ],
  clientMutationId: ""
})

if response.success? && entity = response.item
  puts "Created contractor entity '#{entity.name}' (approved? #{entity.approved})"
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.2.1 tests/contractor_entity_create.rb
ecoportal-api-graphql-0.1.11 tests/create_contractor_entity.rb