Where do I set the content type? There doesn’t appear to be an option for it in the action.
W > On 3 Oct 2019, at 9:50 pm, Peter Dobbs <[email protected]> wrote: > > What are you setting your content type to? > > > A 415 unsupported media type error occurs when the origin server refuses a > particular request since the resource is in a format that is not supported by > the server for the HTTP method used. This unsupported format typeissue can be > caused by what is defined in the resource's Content-Type or Content-Encoding > headers > > > > > Peter Dobbs > President | ENGINESS | P: 416.901.6151 <tel:416.901.6151;118> | F: > 416.901.6150 <tel:416.901.6150> | enginess.io <x-msg://5/www.enginess.io> > > This message may have been dictated and poorly interpreted by Siri. If this > message contains any content that is offensive or unusual/confusing in > anyway, please disregard as Siri is useful despite being incompetent. > > This email and any attachments are confidential and are intended only for the > person(s) to whom it is addressed. It you are not the addressee named above, > any use, copying, distribution or disclosure is strictly unauthorized. If you > have received this information in error, please delete it and any attachments > and notify me immediately. > > >> On Oct 3, 2019, at 1:30 AM, Wayne Irvine <[email protected]> wrote: >> >> I am working with an API that expects JSON. They have provided sample JSON: >> >> { >> "declared_value": "1000.00", >> "items": [ >> { >> "weight": "38.63", >> "height": "0.25", >> "width": "1.65", >> "length": "3.32", >> "quantity": 1, >> "description": "carton" >> }, >> { >> "weight": "39.63", >> "height": "1.25", >> "width": "2.65", >> "length": "4.32", >> "quantity": 2, >> "description": "carton" >> } >> ], >> "sender": { >> "postcode": "2000", >> "suburb": "SYDNEY", >> "type": "business", >> "country": "AU" >> }, >> "receiver": { >> "postcode": "3000", >> "suburb": "MELBOURNE", >> "type": "business", >> "country": "AU" >> } >> } >> >> I have tried pasting this in the Data section of the WebCall action but am >> getting an error: >> 415 Unsupported Media Type >> >> Do I have to escape this data or something? >> >> Wayne >> >> >> Byteserve Pty Ltd >> w: http://www.byteserve.com.au/ <http://www.byteserve.com.au/> >> e: [email protected] <mailto:[email protected]> >> p: +61 02 9960 6099 >> m: 0409 960 609 >> f: +61 02 9960 6088 >> >> >> To unsubscribe from this list, please send an email to >> [email protected] <mailto:[email protected]> with "unsubscribe >> terascript-talk" in the body. > > To unsubscribe from this list, please send an email to > [email protected] <mailto:[email protected]> with "unsubscribe > terascript-talk" in the body. Byteserve Pty Ltd w: http://www.byteserve.com.au/ e: [email protected] p: +61 02 9960 6099 m: 0409 960 609 f: +61 02 9960 6088 ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
