SAP Knowledge Base Article - Public

2196384 - How to Delete Job Requisitions via API and what are the required API permissions to do so?

Symptom

You want to Delete JobRequisitions via SFAPI.

You also want to know the permission details to perform the deletion.

Environment

SuccessFactors System

Resolution

We may delete jobRequisitions using the below request xml:

In this example, We have used the SFAPI entity "JobRequisition$1" and the jobRequisition id "123"

Request XML

<soapenv:Body>
    <urn:delete>
      <urn:type>JobRequisition$1</urn:type>
      <urn:sfobject>
        <urn:id>123</urn:id>
        <urn:type>JobRequisition$1</urn:type>
      </urn:sfobject>
    </urn:delete>
  </soapenv:Body>

Response XML

 <result>
        <jobStatus>OK</jobStatus>
        <message />
        <objectEditResult>
          <id>123</id>
          <errorStatus>OK</errorStatus>
          <editStatus>DELETED</editStatus>
          <index>0</index>
          <message>Successfully deleted</message>
        </objectEditResult>
      </result>

 

To do this, Required permissions are to be enabled from Admin Tools in SF Company instance -

Navigation

Admin Tools - Manage permission Roles - (select the role to which the user is assigned to) - Click on "Permissions" box -Under Recruiting Permissions - Put a check mark on Delete Job Requisitions.

del&#x20;job&#x20;req.jpg 

Keywords

SFAPI Delete operation, delete req id , KBA , LOD-SF-RCM-API , Webservices & APIs , How To

Product

SAP SuccessFactors HCM Core all versions