<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Rest API in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3198444#M1185019</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/399348"&gt;@maurizio Tarduc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your password contains special characters (like&amp;nbsp;^), they might need to be escaped or enclosed in quotes.&lt;/P&gt;&lt;P&gt;Ensure that the password is correctly encoded. Sometimes, special characters can cause issues if not properly encoded.&lt;/P&gt;&lt;P&gt;Verify that the&amp;nbsp;admin&amp;nbsp;user has the necessary roles and permissions to access the REST API. The user should have the&amp;nbsp;rest_api_explorer&amp;nbsp;role or similar.&lt;/P&gt;&lt;P&gt;Check this KB article also&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0812242" target="_blank"&gt;https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0812242&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Viraj Hudlikar.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 15:41:59 GMT</pubDate>
    <dc:creator>Viraj Hudlikar</dc:creator>
    <dc:date>2025-03-06T15:41:59Z</dc:date>
    <item>
      <title>Rest API</title>
      <link>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3197183#M1184649</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;using&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -s -X POST "%baseurl%/api/now/table/incident?sysparm_display_value=true&amp;amp;sysparm_exclude_reference_link=true&amp;amp;sysparm_fields=number%2Cshort_description" ^&lt;BR /&gt;--header "Accept:application/json" ^&lt;BR /&gt;--header "Content-Type:application/json" ^&lt;BR /&gt;--data "{\"short_description\":\"Alert from BMCAMI Command Center\",\"description\":\"%T_MESSAGE%\",\"Urgency\":\"%turgency%\"}" ^&lt;BR /&gt;--user %user%:%pwd%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i receive&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"error":{"message":"User Not Authenticated","detail":"Required to provide Auth information"},"status":"failure"}^C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 18:04:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3197183#M1184649</guid>
      <dc:creator>maurizio Tarduc</dc:creator>
      <dc:date>2025-03-05T18:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API</title>
      <link>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3197550#M1184727</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/399348"&gt;@maurizio Tarduc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure that the username (%user%) and password (%pwd%) are correct and have the necessary permissions to access the ServiceNow instance.&lt;/P&gt;&lt;P&gt;Make sure you are using Basic Authentication correctly. The&amp;nbsp;--user&amp;nbsp;option should be in the format&amp;nbsp;username:password.&lt;/P&gt;&lt;P&gt;I believe the user has the appropriate roles assigned if not please do the needful.&lt;/P&gt;&lt;P&gt;Use a tool like Postman to test the API call. This can help isolate whether the issue is with the curl command or the ServiceNow configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example how to use basic auth with curl:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -s -X POST "https://your_instance.service-now.com/api/now/table/incident?sysparm_display_value=true&amp;amp;sysparm_exclude_reference_link=true&amp;amp;sysparm_fields=number,short_description" \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{\"short_description\":\"Alert from BMCAMI Command Center\",\"description\":\"%T_MESSAGE%\",\"urgency\":\"%turgency%\"}" \
--user "your_username:your_password"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Viraj Hudlikar.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 05:01:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3197550#M1184727</guid>
      <dc:creator>Viraj Hudlikar</dc:creator>
      <dc:date>2025-03-06T05:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API</title>
      <link>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3197575#M1184731</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/399348"&gt;@maurizio Tarduc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you are passing wrong credentials.&lt;/P&gt;
&lt;P&gt;Please check the syntax shared by Viraj and let us know.&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 05:30:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3197575#M1184731</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-03-06T05:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API</title>
      <link>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3198008#M1184857</link>
      <description>&lt;P&gt;Hi thanks first of all&lt;/P&gt;&lt;P&gt;i did a test with the following result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\BMC Software\BMC Defender\t-actions&amp;gt;curl -s -X POST "&lt;A href="https://dev197239.service-now.com/api/now/table/incident?sysparm_display_value=true&amp;amp;sysparm_exclude_reference_link=true&amp;amp;sysparm_fields=number,short_description" target="_blank"&gt;https://dev197239.service-now.com/api/now/table/incident?sysparm_display_value=true&amp;amp;sysparm_exclude_reference_link=true&amp;amp;sysparm_fields=number,short_description&lt;/A&gt;" --header "Accept:application/json" --header "Content-Type:application/json" --data "{\"short_description\":\"Alert from BMCAMI Command Center\",\"description\":\"\",\"urgency\":\"\"}" --user "admin:0hUgJ8vVZ^m"&lt;BR /&gt;{"error":{"message":"User Not Authenticated","detail":"Required to provide Auth information"},"status":"failure"}&lt;BR /&gt;C:\Program Files\BMC Software\BMC Defender\t-actions&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i logon with admin and the password from the browser the login is ok.&lt;/P&gt;&lt;P&gt;let me know if you need to know some other details&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maurizio&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 10:53:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3198008#M1184857</guid>
      <dc:creator>maurizio Tarduc</dc:creator>
      <dc:date>2025-03-06T10:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API</title>
      <link>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3198444#M1185019</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/399348"&gt;@maurizio Tarduc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your password contains special characters (like&amp;nbsp;^), they might need to be escaped or enclosed in quotes.&lt;/P&gt;&lt;P&gt;Ensure that the password is correctly encoded. Sometimes, special characters can cause issues if not properly encoded.&lt;/P&gt;&lt;P&gt;Verify that the&amp;nbsp;admin&amp;nbsp;user has the necessary roles and permissions to access the REST API. The user should have the&amp;nbsp;rest_api_explorer&amp;nbsp;role or similar.&lt;/P&gt;&lt;P&gt;Check this KB article also&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0812242" target="_blank"&gt;https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0812242&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Viraj Hudlikar.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 15:41:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3198444#M1185019</guid>
      <dc:creator>Viraj Hudlikar</dc:creator>
      <dc:date>2025-03-06T15:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API</title>
      <link>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3200465#M1185585</link>
      <description>&lt;P&gt;Hi i changed the password to a more simple and everything worked correctly .&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maurizio&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 10:19:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/rest-api/m-p/3200465#M1185585</guid>
      <dc:creator>maurizio Tarduc</dc:creator>
      <dc:date>2025-03-09T10:19:39Z</dc:date>
    </item>
  </channel>
</rss>

