Sha256: fd76efc269f670d5abc5a76fc90a626d94632d79b8d2c2c34c8ac01c46c72e68

Contents?: true

Size: 527 Bytes

Versions: 10

Compression:

Stored size: 527 Bytes

Contents

require_relative 'local_libs'

api = Ecoportal::API::GraphQL.new
response = api.contractorEntity.update(input: {
  id: "62b04d83fa9170001d3d303f",
  name: "Caras Galathon",
  active: true,
  approved: true,
  # associatedPeopleIds: [
  #   "5adfbef76fb80400047535b3"
  # ],
  leadContractorIds: {
    additions: ["5adfbef76fb80400047535b3"]
  },
  clientMutationId: ""
})

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.4.3 tests/contractor_entity_udpate.rb
ecoportal-api-graphql-0.4.2 tests/contractor_entity_udpate.rb
ecoportal-api-graphql-0.4.1 tests/contractor_entity_udpate.rb
ecoportal-api-graphql-0.4.0 tests/contractor_entity_udpate.rb
ecoportal-api-graphql-0.3.16 tests/contractor_entity_udpate.rb
ecoportal-api-graphql-0.3.15 tests/contractor_entity_udpate.rb
ecoportal-api-graphql-0.3.14 tests/contractor_entity_udpate.rb
ecoportal-api-graphql-0.3.13 tests/contractor_entity_udpate.rb
ecoportal-api-graphql-0.3.12 tests/contractor_entity_udpate.rb
ecoportal-api-graphql-0.3.11 tests/contractor_entity_udpate.rb