Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Latest commit

 

History

History
79 lines (56 loc) · 2.38 KB

IttOutcomeApi.md

File metadata and controls

79 lines (56 loc) · 2.38 KB

OpenapiClient::IttOutcomeApi

All URIs are relative to http://localhost

Method HTTP request Description
v2_teachers_trn_itt_outcome_put PUT /v2/teachers/{trn}/itt-outcome Sets ITT outcome for a teacher

v2_teachers_trn_itt_outcome_put

v2_teachers_trn_itt_outcome_put(trn, opts)

Sets ITT outcome for a teacher

Examples

require 'time'
require 'openapi_client'
# setup authorization
OpenapiClient.configure do |config|
  # Configure Bearer authorization: Bearer
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = OpenapiClient::IttOutcomeApi.new
trn = 'trn_example' # String | The TRN of the teacher to set ITT outcome for.
opts = {
  set_itt_outcome_request: OpenapiClient::SetIttOutcomeRequest.new({itt_provider_ukprn: 'itt_provider_ukprn_example', outcome: OpenapiClient::IttOutcome::PASS}) # SetIttOutcomeRequest | 
}

begin
  # Sets ITT outcome for a teacher
  result = api_instance.v2_teachers_trn_itt_outcome_put(trn, opts)
  p result
rescue OpenapiClient::ApiError => e
  puts "Error when calling IttOutcomeApi->v2_teachers_trn_itt_outcome_put: #{e}"
end

Using the v2_teachers_trn_itt_outcome_put_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> v2_teachers_trn_itt_outcome_put_with_http_info(trn, opts)

begin
  # Sets ITT outcome for a teacher
  data, status_code, headers = api_instance.v2_teachers_trn_itt_outcome_put_with_http_info(trn, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <SetIttOutcomeResponse>
rescue OpenapiClient::ApiError => e
  puts "Error when calling IttOutcomeApi->v2_teachers_trn_itt_outcome_put_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
trn String The TRN of the teacher to set ITT outcome for.
set_itt_outcome_request SetIttOutcomeRequest [optional]

Return type

SetIttOutcomeResponse

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json, text/json, application/*+json
  • Accept: application/json, application/problem+json