java.lang.Object
com.ringcentral.paths.restapi.account.messagethreads.Index

public class Index extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • path

      public String path(Boolean withParameter)
    • path

      public String path()
    • list

      Returns a paginated list of message threads for the specified account according to the specified criteria.

      Different filters are combined with logical "AND", different values for the same filter (if supported) are combined with logical "OR".

      Only threads that accessible for a current authorized user are returned. The records are sorted by `creationTime` in ascending order.

      HTTP Method: get Endpoint: /restapi/{apiVersion}/account/{accountId}/message-threads Rate Limit Group: Medium App Permission: SMS

      Throws:
      RestException
      IOException
    • list

      Throws:
      RestException
      IOException
    • get

      public MessageThread get() throws RestException, IOException
      Returns a message thread by ID.

      API returns a 403 error if the current user does not have access to the given thread.

      HTTP Method: get Endpoint: /restapi/{apiVersion}/account/{accountId}/message-threads/{threadId} Rate Limit Group: Medium App Permission: SMS

      Throws:
      RestException
      IOException
    • delete

      public String delete() throws RestException, IOException
      Deletes a message thread by IDs.

      Technically this operation just sets thread's `availability` to `Deleted`. API returns a 403 error if the current user does not have access to the given thread.

      Once the thread is deleted its `assignee` attribute is cleared automatically.

      HTTP Method: delete Endpoint: /restapi/{apiVersion}/account/{accountId}/message-threads/{threadId} Rate Limit Group: Medium App Permission: SMS

      Throws:
      RestException
      IOException
    • sync

      public Index sync()
    • notes

      public Index notes()
    • notes

      public Index notes(String noteId)
    • assign

      public Index assign()
    • entries

      public Index entries()
    • resolve

      public Index resolve()
    • messages

      public Index messages()