Ok ive got some servers that dont really give me good info for reports etc.
Now ive realised i have to create custom fields then get the server to fill them so i get the info i need. So i decided to run a test to get me started
I used powershell on my machine as i cant mess about on the servers willy nilly. and sent this command
curl https://****.zendesk.com/api/v2/requests.json \ -d '{"request": {"subject": "Help!" , "comment": {"body": "My printer is on fire!", "uploads": [...] }}}' \ -v -u *****/token:************* -X POST -H "Content-Type: application/json"
Invoke-WebRequest : Parameter cannot be processed because the parameter name 'u' is ambiguous. Possible matches include: -UseBasicParsing -Uri -UseDefaultCredentials -UserAgent. At line:1 char:170 + ... ody": "My printer is on fire!", "uploads": [...] }}}' \ -v -u simple- ... + ~~ + CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException + FullyQualifiedErrorId : AmbiguousParameter,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
But i get the error? can anyone throw some light on what im doing wrong?
The snippet is from here https://developer.zendesk.com/rest_api/docs/core/requests#create-request
.
What im trying to get to is a message that i can add other fields to be filled in on the tickets once i get this working.