• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

POST Agents/Pocket/GetPocketStartupData

Some tooltip text!
• 4 minutes to read
 • 4 minutes to read
POST /api/v1/Agents/Pocket/GetPocketStartupData

NsApiSlow threshold: 5000 ms.

Query String Parameters

Parameter Name Type Description
$select string Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields.
POST /api/v1/Agents/Pocket/GetPocketStartupData?$select=name,department,category/id

Request Headers

Parameter Name Description
Authorization Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type.
X-XSRF-TOKEN If not using Authorization header, you must provide XSRF value from cookie or hidden input field
Content-Type Content-type of the request body: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, application/json-patch+json, application/merge-patch+json
Accept Content-type(s) you would like the response in: application/json, text/json, application/xml, text/xml, application/json-patch+json, application/merge-patch+json
Accept-Language Convert string references and multi-language values into a specified language (iso2) code.
SO-Language Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value.
SO-Culture Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set.
SO-TimeZone Specify the timezone code that you would like date/time responses converted to.
SO-AppToken The application token that identifies the partner app. Used when calling Online WebAPI from a server.

Request Body: request

Tables, CurrentClientTime

Property Name Type Description
Tables Array
CurrentClientTime String

Response:

OK

Response Description
200 OK

Response body: PocketStartupData

Property Name Type Description
TableRights array List of tablerights for logged in user, in the same order as the Tables array parameter
PhoneLocaleTimeZoneData TimeZoneData
BaseLocaleTimeZoneData TimeZoneData
OverdueSalesCount int32 Number of overdued sales for current user
NotificationsCount int32 Number of new invitations
SystemWebPanels array Web panels defined in Admin client, set to be shown in Pocket client
PocketPreferences array All Pocket specific preferences, including WebPanels defined by the user in Pocket
IsPushNotificationEnabled bool Is push notification configured and enabled in Netserver
CustomData string Custom data for Pocket, in JSON format
TableRight TableRight The carrier's table right
FieldProperties object Field property dictionary mapping field names to field access rights.

Sample request

POST /api/v1/Agents/Pocket/GetPocketStartupData
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: en
Content-Type: application/json; charset=utf-8

{
  "Tables": [
    "quia",
    "ea"
  ],
  "CurrentClientTime": "2013-10-22T02:30:47.5850743+02:00"
}

Sample response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "TableRights": [
    "non",
    "distinctio"
  ],
  "PhoneLocaleTimeZoneData": null,
  "BaseLocaleTimeZoneData": null,
  "OverdueSalesCount": 903,
  "NotificationsCount": 149,
  "SystemWebPanels": [
    {
      "WebPanelId": 93,
      "Name": "Tillman-Ward",
      "Tooltip": "dignissimos",
      "Deleted": false,
      "Rank": 427,
      "UrlEncoding": "ANSI",
      "VisibleIn": "ActivityDialog",
      "OnCentral": true,
      "OnSatellite": true,
      "OnTravel": true,
      "OnSalesMarketingWeb": false,
      "OnSalesMarketingPocket": false,
      "ShowInMenuBar": false,
      "ShowInToolBar": false,
      "ShowInAddressBar": false,
      "ShowInStatusBar": true,
      "WindowName": "Bayer, Walter and Conn",
      "Url": "http://www.example.com/",
      "ProgId": "suscipit",
      "Icon": 515,
      "AlwaysReloadOnShow": true,
      "NeverReloadOnCurrentChange": false,
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.Int32",
          "FieldLength": 159
        }
      }
    }
  ],
  "PocketPreferences": [
    {
      "Level": "Database",
      "RawValue": "voluptatibus",
      "Specification": null,
      "DisplayValue": "nam",
      "DisplayTooltip": "aut",
      "DisplayType": "Bool",
      "TabOrder": null,
      "TargetId": 931,
      "PrefDescId": 950,
      "TableName": "Feest Inc and Sons",
      "UserPreferenceId": 27,
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.String",
          "FieldLength": 500
        }
      }
    }
  ],
  "IsPushNotificationEnabled": false,
  "CustomData": "cupiditate",
  "TableRight": null,
  "FieldProperties": {
    "fieldName": {
      "FieldRight": null,
      "FieldType": "System.Int32",
      "FieldLength": 702
    }
  }
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top