when i use
POST /v1/spaces/:space_id/milestones
to create a milestone i have receive 403 forbidden.
But i can create milestone manaully.
i also can post comment. Here is my java code ;
/**
* get application header map
*/
private Map<String, String> getApplicationHeaderMap() {
Map<String, String> headerMap = new HashMap<String, String>();
headerMap.put("Accept", "application/xml");
headerMap.put("Content-Type", "application/xml");
headerMap.put("X-Api-Key", getApiKey());
headerMap.put("X-Api-Secret", getApiKeySecret());
return headerMap;
}
public void createMilestone(String spaceName, String milestoneName) throws ConnectorException {
String milestoneXml = "<milestone><title>testMilestone</title></milestone>";
String xmlContent = connector.doPost(url, new StringEntity(milestoneXml , "UTF-8");, getApplicationHeaderMap());
}
com.glority.common.connectors.ConnectorException: Error response: HTTP/1.1 403 Forbidden
at com.glority.common.connectors.http.HttpConnector.doRequest(HttpConnector.java:371)
at com.glority.common.connectors.http.HttpConnector.doPost(HttpConnector.java:206)
at com.glority.common.connectors.assembla.AssemblaConnector.createMilestone(AssemblaConnector.java:1273)