View Issue Details

IDProjectCategoryView StatusLast Update
0027105mantisbtapi restpublic2020-07-24 03:31
Reporteralexandre.fournel@sia-partners.com Assigned To 
PriorityhighSeverityfeatureReproducibilityalways
Status newResolutionopen 
Product Version2.24.1 
Summary0027105: change handler api rest python
Description

Hi all !
I can't manage to change handler of one of my issue (number 5) by using API written on postman Website.
Someone can help ?

This is my code :

url_issue = "http://XXX.XXX.X.XX/mantisbt/api/rest/issues/5"
token='XXXXXXXXXXXXXXXXXXXXXXX'
payload = "{ \"id\": 5,
\"handler\ : {\"id\":9, \"name\":\"Codix\", \"real_name\":\"Codix\", \"email\":\"alexandre.fournel@ensta-paris.fr\"}
}"

Thanks a lot !

TagsNo tags attached.

Activities

alexandre.fournel@sia-partners.com

alexandre.fournel@sia-partners.com

2020-07-24 03:31

reporter   ~0064181

I forgot some lines :

headers = {
'Authorization': token,
'Content-Type': 'application/json'
}
response = requests.request("PATCH", url_issue, headers=headers, data = payload)
print(response.text.encode('utf8'))

Issue History

Date Modified Username Field Change
2020-07-24 03:25 alexandre.fournel@sia-partners.com New Issue
2020-07-24 03:31 alexandre.fournel@sia-partners.com Note Added: 0064181