curl -i -X PUT -H "Authorization: Bearer _token" -H "Content-type: application/json" -d '{"status":{"name":"New status",...}}' https://api.assembla.com/v1/spaces/_space_id/tickets/statuses/_id.json
Mine would look like this:
curl -i -X PUT -H "Authorization: Bearer _token" -H "Content-type: application/json" -d '{"status":{"name":"Deployed to INTEG"}}' https://api.assembla.com/v1/spaces/SE_Dunn/tickets/statuses/159442953.json
$CustomReportsURI = https://api.assembla.com/v1/spaces/SE_Dunn/tickets/statuses/159442953.json?%7b%22status%22%3a%7b%22name%22%3a%22Deployed+to+INTEG%22%7d%7dInvoke-RestMethod -Uri $CustomReportsURI -Headers $Headers -Method Put
1) do I need to use URL encoding as shown above in my example, for $CustomReportURI?2) Is the , URL ending before the parameters correct with <TicketID>.json, as 159442953.json ?
when trying this:
MacBook-Pro:$ curl -X PUT https://api.assembla.com/v1/spaces/SE_Dunn/tickets/statuses/180266053.json -H 'cache-control: no-cache' -H 'x-api-key: ****' -H 'x-api-secret: ***' -H 'Content-type: application/json' -d '{"status":{"name":"Deployed to INTEG"}}'
response:
{"error":"Couldn't find TicketStatus with 'id'=180266053 [WHERE `ticket_statuses`.`space_tool_id` = ?]"}