Viewing an Instruction
You can view an instruction that is either in a draft (unpublished) state, published state, or in an in revision state.
Request
-
HTTP Method:GET
-
URL:Application_URL/services/api/v1/instructions(<instruction ID>)?status=2
-
Query parameters:
Status:allows you to specify the state of the instruction. It can take the following values:
1- specifies the instruction is in unpublished sate
2- specifies the instruction is In published state
3-specifies the instruction is in In Revision state
-
Example URL:Application_URL/services/api/v1/instructions(E0B15BE85E2B41FBA06069B8D61CEB09)?status=2
-
Authorization:You must have the roles INSTRUCTION_EDIT or INSTRUCTION_READ or INSTRUCTION_DELETE assigned to your user IDin the SAP Cloud Platform account.
Response
-
For more information, see https://help.sap.com/doc/2292e8c9ed864adc92140273035a0c0f/1902/en-US/instruction.html#instructions__instructionId___get.
-
If the instruction with the specified instruction ID and the status does not exist, system returns an error code.If an instruction with the specified instruction ID and the specified status exists, system returns the instruction and the relevant details.
For more information on error codes the system returns, see response payload in https://help.sap.com/doc/2292e8c9ed864adc92140273035a0c0f/1902/en-US/instruction.html#instructions__instructionId___get.