I am performing a webhook registration to Dynamics 365 CRM through Postman with Authentication(authtype) as 'HttpHeader', Below is the CURL.
curl --location 'https://org3a4.api.crm8.dynamics.com/api/data/v9.2/serviceendpoints' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJ' \
--header 'Cookie: ARRAffinity=c52218673543ae327ac4ca6d4dded4e4985f806da4e2197009d540dbcf32d92715134d20c556b0b34b9b6ae43ec3f5dcdad61788de889ffc592af7aca85fc1c508DC893CD48D2A2530736814; ReqClientId=52a33499-a7ae-4d41-b337-521fb9d97796; orgId=27a4db60-3f18-ef11-9f86-002248d5cadc' \
--data '{
"name": "Incident Create Webhook Postman with Auth",
"url": "https://webhook.site/8afb4528-a43d-42b6-a777-2837b83a",
"contract": 8,
"authtype": 5,
"authvalue": "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJ"
}'
I am not able to figure out the authvalue, format that should be passed. Above API giving Below error :
{
"error": {
"code": "0x80040203",
"message": "AuthValue is Invalid. Please check the value and format and retry the operation."
}
}
Can you please let us know the Correct format to add "authvalue" in Request Body?