최근 검색
최근 검색 없음

Ken McCartney
가입한 날짜: 2023년 1월 20일
·
마지막 활동: 2023년 1월 20일
팔로잉
0
팔로워
0
총 활동 수
2
투표 수
0
가입 플랜
1
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Ken McCartney
Ken McCartney님이 에 게시물을 만듦
Hey everyone! I'm migrating some tickets to Zendesk, and using the imports/tickets endpoint.
I have uploaded some files that go along with the tickets, but when I try to create comments on my tickets, it claims that the uploads parameter is invalid for comments. Here's a sample call:
{
"ticket": {
"external_id": "x",
"assignee_id": "x",
"created_at": "2022-11-22T18:49:21Z",
"subject": "Zendesk Merge Test Ticket: Webform 3 with attachment",
"description": "",
"priority": "",
"status": "open",
"group_id": "x",
"ticket_form_id": "x",
"brand_id": "x",
"requester_id": "x",
"tags": [
"no_verification_needed",
"other/unknown",
"other_call_back_request",
"pre-application_help",
"sms_verified_-_no_further_client_verification_needed"
],
"custom_fields": {
"request": {
"custom_fields": {
"id": x,
"value": "x"
}
}
},
"comments": [
{
"author_id": "x",
"created_at": "2022-11-22T18:49:21Z",
"body": "Original Comment."
},
{
"author_id": "x",
"created_at": "2023-01-04T15:13:54Z",
"body": "comment with 1 attachment",
"uploads": [
"zmxrhTsTvLJPmn7dVShufkoTA"
]
},
{
"author_id": "x",
"created_at": "2023-01-08T06:38:05Z",
"body": "Testing multiple files.",
"uploads": [
"6kbSPIUHaDofksZBvznJRWlK1",
"qfhDkaNCVAwPN7Nnxc1an8vFw"
]
}
]
}
}
And here is the response:
{
"error": "RecordInvalid",
"description": "Record validation errors",
"details": {
"uploads": [
{
"description": "Uploads is invalid",
"error": "InvalidValue"
}
]
}
}
Can I assume then, that I cannot attach uploads to comments as part of the import api?
If so, are there restrictions on adding comments (with uploads) to closed tickets?
If I update a ticket multiple times with {"ticket" : {"comment" : {"body":"x"},"uploads":["x":"y"], "author_id" : "x", "created_at" : date}} will it keep creating new comments?
Thanks!!
2023년 1월 20일에 게시됨 · Ken McCartney
0
팔로워
9
투표 수
7
댓글