Assuming these values are provided above, the curl command should work correctly. However, if there are any issues with the API endpoint or the data being passed in the request, there could still be errors that need to be resolved before you can test these APIS.
Placeholders
Descriptions
{{Swym API Endpoint}}
This needs to be replaced with the actual Swym API endpoint URL.
{{URL Encoded PID}}
This needs to be replaced with the actual PID value, URL-encoded.
{{regid}}
This needs to be replaced with the actual regid value.
{{sessionid}}
This needs to be replaced with the actual session ID value.
{{lid}}
This needs to be replaced with the actual save for later list ID value.
{{user-agent}}
This needs to be replaced with User-Agent header value.
If the request is unsuccessful, the API will return a JSON response with an error message and an HTTP status code indicating the type of error that occurred.
Status Code
Type
Description
400
Bad Request
Your request is invalid, change your request params and query and try again.
401
Unauthorised
You are performing an action on a resource that is not granted to the current logged-in user. Additionally, for REST APIs, this could mean your API key is wrong.
403
Forbidden
You are not allowed to request this data.
404
Not Found
The specified requested data could not be found.
500
Internal Server Error
We had a problem with our server. Try again later.
503
Service Unavailable
We're temporarily offline for maintenance. Please try again later.
Product
An object containing params required for creating, updating or deleting list items
Property Name
Data Type
Required
Description
epi
int/string
Yes
Variant id of the product to be added
empi
int/string
Yes
Product id of the product to be added
du
string
Yes
Canonical uri of the product to be added
qty
int
optional
Defaults to 1. Quantity included for the add action
note
string
optional
Optional note
cprops
object
optional
Map of custom fields
clbls
array
optional
Array of strings indicating labels, rooms, etc. for HTC. Only one value supported in array. eg: ["Room1"]