ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

n/n
description
inputs
expected_result
actual_result
UCE1Update Contract employees without scope
  • Doctor access_token
  • contract_id
  • signed content
  • 403
403, Your scope does not allow to access this resource. Missing allowances: contract:write
UCE2Update Contract employees by contract which doesn't exist
  • HR access_token
  • contract_id
  • signed content
  • 404
404, not found
UCE3Update Contract employees by contract which doesn't belong to MSP  
  • HR access_token
  • contract_id
  • signed content
  • 403
403, You are not allowed to view this contract
UCE4Update Contract employees by contract with nhs_access token 
  • NHS access_token
  • contract_id
  • signed content
  • 403
403
UCE5Update  contract employees by contract with status TERMINATED 
  • HR access_token
  • contract_id
  • signed content
  • 409
409, Not active contract can't be updated
UCE6Update employees with division that doesn't belong to MSP 
  • HR access_token
  • contract_id
  • signed content
422422, Division should be among contract_divisions
UCE7Update employees inactive doctor 
  • HR access_token
  • contract_id
  • signed content
422422, Employee must be within current legal_entity
UCE8Update employees with division that doesn't belong to contractor divisions 
  • HR access_token
  • contract_id
422422, Division should be among contract_divisions
UCE9Update employees and CLOSED division
  • HR access_token
  • contract_id
  • signed content
422422, Division must be active and within current legal_entity
UCE10Update employees
  • HR access_token
  • contract_id
  • signed content
200200
UCE11Deactivate employee which is not in contract
  • HR access_token
  • contract_id
  • signed content
422422, Invalid employee_id to deactivate
UCE12Add new employee to contract 
  • HR access_token
  • contract_id
  • signed content
200200
UCE13Add new employee from another MSP to contract 
  • HR access_token
  • contract_id
  • signed content
422422, Employee and contract legal_entity_id mismatch
UCE14Add dismissed employee to contract
  • HR access_token
  • contract_id
  • signed content
422422, Employee must be active DOCTOR
UCE15Add employee from closed division to contract
  • HR access_token
  • contract_id
  • signed content
422422, Division must be active and within current legal_entity
UCE16Deactivate employee from contract
  • HR access_token
  • contract_id
  • signed content

200,

found and deactivated employee

200,

found and deactivated employee

UCE17Deactivate DISMISSED employee from contract
  • HR access_token
  • contract_id
  • signed content
200200
UCE18Deactivate employee from contract with closed division
  • HR access_token
  • contract_id
  • signed content
200200
UCE19Add and deactivate employee via one request 
  • HR access_token
  • contract_id
  • signed content
200200
  • No labels