CONSUMER: Make an Outbound REST Post - 7
NOTE:
- POST and PUT methods require a value added to the Content field.
- 201 - The request has been fulfilled and has resulted in one or more new resources being created.
- System Web Services > Outbound > REST Message.
- Open the REST Incident record.
- In the HTTP Methods Related List, open the Default GET record.
- Modify the following fields to create a POST HTTP Method using the Insert and Stay action.
- Name: POST HTTP
- method: POST
- Insert and Stay.
- Under the HTTP Request tab, in the HTTP Headers section, add the following.
- Name: Accept
- Value: application/json
- Name: Content-Type
Value: application/json
In the Content field, add:
{'number':'${number}','state':'${state}','short_description':'${short_description}'}
Save
In the Variable Substitutions Related List, click New to create the following Variable
Substitutions.
test
- Verify the http status of being 201