Hi Team,
I am working on a workflow where we need to trigger a http operation patch for SAP Ariba scim api.
How it works in postman using basic auth.
I tried to replicate the same in http operation in workflow but it fails saying supported media type.
This is my curl command
curl --location --request PATCH 'https://xyz.ondemand.com/ipsproxy/service/api/v1/scim/eec804d9-a69e-46ca-b97d-09401c1e18a1/Users/esptest20' \
--header 'Content-Type: application/scim+json' \
--header 'Authorization: Basic ***************' \
--data '{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "replace",
"path": "displayName",
"value": "esptest20"
},
{
"op": "replace",
"path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
"value": {
"manager": {
"value": "e004hoq"
}
}
},
{
"op": "replace",
"path": "urn:ietf:params:scim:schemas:extension:sap.odm:2.0:User",
"value": {
"companyCode": [
{
"displayId": "9000",
"primary": true
}
],
"costCenter": [
{
"companyCodeId": "9000",
"costCenterId": "0095005000",
"primary": true
}
]
}
}
]
}'
And here is my workflow output:
{
"type": "ActivityTaskScheduled",
"timestamp": "2025-06-26T08:45:28.959657221Z",
"attributes": {
"displayName": "HTTP Request",
"input": {
"authenticationType": "basic",
"basicAuthPassword": "$.secrets.************",
"basicAuthUserName": "************",
"jsonRequestBody": {
"Operations": [
{
"op": "replace",
"path": "displayName",
"value": "esptest20"
},
{
"op": "replace",
"path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
"value": {
"manager": {
"value": "e004hoq"
}
}
},
{
"op": "replace",
"path": "urn:ietf:params:scim:schemas:extension:sap.odm:2.0:User",
"value": {
"companyCode": [
{
"displayId": "9000",
"primary": true
}
],
"costCenter": [
{
"companyCodeId": "9000",
"costCenterId": "0095005000",
"primary": true
}
]
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
},
"method": "patch",
"requestContentType": "json",
"requestHeaders": {
"Content-Type": "application/scim+json"
},
"url": "https://************/Users/esptest20"
},
"stepName": "hTTPRequest",
"task": "sp:http",
"technicalName": "HTTP Request"
}
},
{
"type": "ActivityTaskStarted",
"timestamp": "2025-06-26T08:45:28.969063189Z",
"attributes": {
"attempts": 1,
"displayName": "HTTP Request",
"stepName": "hTTPRequest",
"task": "sp:http",
"technicalName": "HTTP Request"
}
},
{
"type": "ActivityTaskFailed",
"timestamp": "2025-06-26T08:45:29.491684603Z",
"attributes": {
"displayName": "HTTP Request",
"error": "request failed",
"stepName": "hTTPRequest",
"task": "sp:http",
"technicalName": "HTTP Request"
}
},
{
"type": "WorkflowExecutionFailed",
"timestamp": "2025-06-26T08:45:29.52338686Z",
"attributes": {
"error": "task failed: activity error (type: sp:external:http:v2, scheduledEventID: 23, startedEventID: 24, identity: ************): request failed (type: HTTP Response Returned a Client Error, retryable: false): request failed: 415 - 415 - {\"origin\":\"SAP IPS\",\"error\":{\"code\":\"Unsupported Media Type\",\"message\":\"\"}}"
}
}

