Sha256: 8bf1ac6a000d1d4909f3f0ad28af1adb192937046acbf969e32f7127fab18dca

Contents?: true

Size: 598 Bytes

Versions: 6

Compression:

Stored size: 598 Bytes

Contents

module Panoptes
  class Client
    module Subjects
      # Retire a subject for a workflow
      #
      # @todo Add this endpoint to the Apiary docs and add a see-reference here.
      # @param workflow_id [Integer] the ID of a workflow
      # @param subject_id  [Integer] the ID of a subject associated with that workflow (through one of the assigned subject_sets)
      # @return nothing
      def retire_subject(workflow_id, subject_id)
        post("/workflows/#{workflow_id}/retired_subjects", {
          admin: true,
          subject_id: subject_id
        })
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
panoptes-client-0.2.3 lib/panoptes/client/subjects.rb
panoptes-client-0.2.2 lib/panoptes/client/subjects.rb
panoptes-client-0.2.1 lib/panoptes/client/subjects.rb
panoptes-client-0.2.0 lib/panoptes/client/subjects.rb
panoptes-client-0.1.2 lib/panoptes/client/subjects.rb
panoptes-client-0.1.1 lib/panoptes/client/subjects.rb