Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adicionar um grupo #5

Open
virgiliodantas opened this issue Oct 7, 2020 · 0 comments
Open

adicionar um grupo #5

virgiliodantas opened this issue Oct 7, 2020 · 0 comments

Comments

@virgiliodantas
Copy link

no arquivo glpi-sdk-ruby/lib/glpi/sdk/resource.rb :

  #adicionar group
  def self.group_ticket(session, id, attributes = {})
    item_type = attributes.key?(:item_type) ? attributes.delete(:item_type) : type_name
    payload = { input: attributes }.to_json
    session.request :post, "/#{item_type}/#{id}/group_ticket/", body: payload
    find(session, id, item_type)
  end

para adicionar o grupo como observador(3), atribuir a um usuário(2) ou requerente(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant