![]() ![]() Let’s specify the account name - Pirate Pete’s Parrot Pellets, in the request body. Thankfully, all the information you need to fix the request is in the error response. Did you get a “Required fields are missing: ”, response?īecause Name is a required field for creating an account, the server didn’t process the request, and you received an error. Under REST, select SObject, and then select POST SObject Create.In the Content-Type row, in the VALUE column, replace application/xml with application/json.Now let’s create an account using the SObject resource and the POST method.įirst, though, let’s change the Content-Type header back to JSON. In the Content-Type row, in the VALUE column, replace application/json with application/xml.Because REST API supports both JSON and XML, let’s change the request header to specify an XML response. The Account metadata is displayed in JSON. Good work, Captain! The Account metadata appears on the screen, and Postman has nicely formatted the response. /describe-An action in this case, a Describe request./:SOBJECT_API_Name-The sObject being actioned in this case, Account./sobjects-Specifies that you’re accessing a resource under the sObject grouping.The double curly quotes indicate that this can be set as a variable. GET-The HTTP method used for this API call.Under Path Variables, in the SOBJECT_API_NAME row, VALUE column, enter Account.īefore you take a look at your query results, let’s take a minute to break down this resource’s URI.In the main panel, open the Params tab.In Collections, select your fork of the Salesforce APIs Collection.This resource, when combined with the GET method, returns metadata about an object and its fields. You’ll use the SObject Describe resource. When you select a resource from the Salesforce API Collection, the URI builds across the top of the main window. You can make REST API calls to your Trailhead playground using the resources in the Postman app Salesforce Collection REST folder just like you would from any other HTTP interface. You can do this by completing Quick Start: Connect Postman to Salesforce. The first step is to create a new Trailhead Playground, connect it to the Postman app, set up cross-origin resource sharing, and create a fork to the Salesforce API Collection. And Postman is just one of many tools you can use to interact with your Salesforce org through the API. You can make REST requests from any HTTP sender. You must indicate a value of application/JSON in the drop-down menu if not already selected.You’re going to use Postman to make some API calls. Note: The request payload for the Bargain Finder Max API is specified in the Body field. The following demonstrates an example request with a payload to call the Bargain Finder Max API. NOTE both the token and Content-Type are specified in the Headers field. Here are the values we used in this example: Headers The following demonstrates an example request without a payload to call the Travel Theme Lookup API. NOTE the token is specified in the Headers field. Here are the values we used in this example: URIĪuthorization: Basic YOURBASE64ENCODEDSTRINGGOESHEREĬontent-Type: application/x-www-form-urlencoded Once you have constructed your token credentials, you're ready to get a token using Postman. You have constructed your token credentials according to the How to get a token instructions. Learn how to to get a sessionless token using PostMan, and use the token to call a given REST API. Need help? Try asking our community, led by Sabre Engineers. Submit your questions and project issues to share in a public forum led by Sabre technical experts.Įxplore support and community options available to Travel Solutions customers.Įxplore support and community options available to Airline Solutions customers.Įxplore support and community options available to Hospitality Solutions customers.Įxplore support and community options available to our Authorized Developers. ![]() View our showcase of innovative solutions created with the power of Sabre APIs.īuild faster with easy-to-ingest code in our comprehensive GitHub repository. Need a little inspiration? Check out our videos to see our APIs in action. Get an under-the-hood look at Sabre APIs by browsing our sample code library, available in a variety of programming languages. Learn how to integrate with Sabre Hospitality APIs, powered by the SynXis™ platform. Whether you’re an airline, travel agency, or a startup, learn how to get started with Sabre APIs and consume our available services. Hospitality Profile and Loyalty ManagementĬheck out how to leverage our APIs to create powerful solutions. View our Product Collections, carefully curated groups of APIs with you in mind. View all Sabre APIs and SDKs, or filter to find what meets your needs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |