Answered

API, listing all agents, included contact, whats the Id?

When listing all agents, data returned includes, contact, but no Id.  Further more, when trying to find such Agent.contact in records returned from /api/v2/contacts, many are not found.  It's as if Agents.contact are missing from Contacts, yet clearly the schema of Agent.contact is identical to Contact.

1.  Is it possible to get the Agent.contact.id ?  Or should I just use Agent.id?  Are these ids disjoint or overlapping?
2.  Should I just create records in Contacts for each Agent as needed using Agent.id as the Contact.id ?
   {
      "available":true,
      "occasional":false,
      "signature":null,
      "id":1,
      "ticket_scope":1,
      "created_at":"2015-08-18T16:18:05Z",
      "updated_at":"2015-08-18T16:18:05Z",
      "available_since":null,
      "contact":{
         "active":true,
         "email":"sample@freshdesk.com",
         "job_title":null,
         "language":"en",
         "last_login_at":"2015-08-21T14:54:46+05:30",
         "mobile":null,
         "name":"Support",
         "phone":null,
         "time_zone":"Chennai",
         "created_at":"2015-08-18T16:18:05Z",
         "updated_at":"2015-08-25T08:50:20Z"
      }



 


Best Answer

Hi Juan,


Sorry about the late response. In Freshdesk if you want to create an agent via API, you first create a contact and then convert it into an agent. The ID remains the same i.e Agent.ID and agent.contact.id are the same.


Could you give an example where the agent JSON is missing the contact portion? We can investigate that for you.


Answer

Hi Juan,


Sorry about the late response. In Freshdesk if you want to create an agent via API, you first create a contact and then convert it into an agent. The ID remains the same i.e Agent.ID and agent.contact.id are the same.


Could you give an example where the agent JSON is missing the contact portion? We can investigate that for you.

So what are the names I can use?
Login or Signup to post a comment