SAP Knowledge Base Article - Public

3293215 - HTTP method 'GET' is not allowed for resource

Symptom

You want to query below from entity "initiateOnboardingForUser?" to fetch the data and getting below error.

 
<?xml version="1.0" encoding="utf-8" standalone="yes"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">    <code>MethodNotAllowedException</code>    <message lang="en-US">HTTP method 'GET' is not allowed for this resource.</message></error>
 

  • Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP SuccessFactors HXM Suite
    • Integrations
      • OData API

Reproducing the Issue

1. In the postman application try to run the query with GET operator.

https://apisalesdemo4.successfactors.com/odata/v2/beta/initiateOnboardingForUser?processTriggerId='XXXXXXXXX'&startDate=datetime'2023-01-01T00:00:00Z'

2. Getting below error 

<?xml version="1.0" encoding="utf-8" standalone="yes"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">    <code>MethodNotAllowedException</code>    <message lang="en-US">HTTP method 'GET' is not allowed for this resource.</message></error>

Cause

This is expected behavior from System.

 

Resolution

This is expected behavior's from the system as Supported Operations for this entity are below.

HTTP Method: POST

Return Type: string

Support Payload: true

Refer below OData guide for refence.

SAP SuccessFactors HXM Suite OData API: Reference Guide (V2)

Keywords

OData, Postman, GET, POST, HTTP method 'GET' is not allowed for this resource, initiateOnboardingForUser, MethodNotAllowedException , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem

Product

SAP SuccessFactors HXM Core 2211 ; SAP SuccessFactors HXM Suite 2211