Insightly Task API
Hello,
I am unable to create a Task using Postman.
Following is the request structure.Able to get project id, userid.
{"TASK_ID": 1,
"Title": "sample string 2",
"CATEGORY_ID":5712610
"PUBLICLY_VISIBLE": true,
"COMPLETED": true,
"PROJECT_ID": 6824203,
"RESPONSIBLE_USER_ID":"",
"ASSIGNED_TEAM_ID":1
"OWNER_USER_ID":1561978,
"ASSIGNED_BY_USER_ID":1561978
}
Still it shows as 400 bad request.
Team Id is require?If yes I have no teams in my account, so tried creating a team using Team API.
{
"TEAM_ID": 1,
"TEAM_NAME": "sample string 2",
"ANONYMOUS_TEAM": false,
"DATE_CREATED_UTC": "2018-02-21 02:42:48",
"DATE_UPDATED_UTC": "2018-02-21 02:42:48",
"TEAMMEMBERS": [
{
"PERMISSION_ID": 1,
"TEAM_ID": 2,
"MEMBER_USER_ID": 1,
"MEMBER_TEAM_ID": 1
},
{
"PERMISSION_ID": 1,
"TEAM_ID": 2,
"MEMBER_USER_ID": 1,
"MEMBER_TEAM_ID": 1
},
{
"PERMISSION_ID": 1,
"TEAM_ID": 2,
"MEMBER_USER_ID": 1,
"MEMBER_TEAM_ID": 1
}
]
}
Stilll getting 400 bad request error.Tried creating members, but it requires Team Id.
Please let me know what I am missing.
Comments
Insightly Task API
Hello,
I am unable to create a Task using Postman.
Following is the request structure.Able to get project id, userid.
{"TASK_ID": 1,
"Title": "sample string 2",
"CATEGORY_ID":5712610
"PUBLICLY_VISIBLE": true,
"COMPLETED": true,
"PROJECT_ID": 6824203,
"RESPONSIBLE_USER_ID":1561978,
"ASSIGNED_TEAM_ID":1
"OWNER_USER_ID":1561978,
"ASSIGNED_BY_USER_ID":1561978
}
Hello Jitterbit Recipe,
Could you please try to add "STATUS": "COMPLETED" into your JSON object.
If this does not work, please tell us the error code and message you get.
Thanks,
Oguzhan
Hello Team,
Thanks for suggestion.
Following is my Create task request with status included.
API: https://api.insight.ly/v2.1/Tasks
Method : Post
Authorization: Basic (My token)
In raw body type of postman using following request structure .
{"TASK_ID": 1,
"TITLE": "sample string 2",
"CATEGORY_ID":5712610
"PUBLICLY_VISIBLE": true,
"COMPLETED": true,
"PROJECT_ID": 6824203,
"RESPONSIBLE_USER_ID":1561978,
"ASSIGNED_TEAM_ID":1
"OWNER_USER_ID":1561978,
"ASSIGNED_BY_USER_ID":1561978,
"STATUS": "COMPLETED"
}
Getting blank response with status 400 Bad request.The request can not be fulfilled due to bad syntax.
I think your issue is related to the TASK_ID you are sending, try again with out a task ID.
H Rob,
I tried with following request:
{
"TITLE": "sample string 2",
"CATEGORY_ID":5712610
"PUBLICLY_VISIBLE": true,
"COMPLETED": true,
"PROJECT_ID": 6824203,
"RESPONSIBLE_USER_ID":1561978,
"ASSIGNED_TEAM_ID":1
"OWNER_USER_ID":1561978,
"ASSIGNED_BY_USER_ID":1561978,
"STATUS": "COMPLETED"
}
Method : POST
https://api.insight.ly/v2.1/Tasks
Headers: Authorization:Basic [my token]
Gave result as BAD REQUEST. Please help me.
Please sign in to leave a comment.