Cyan Web API - Version 1


POST api/syncTokens

            Creates a token that can be used to retrieve sync data.
            

Request Information

Parameters

NameDescriptionAdditional information
syncTokenRepresentation

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "syncTokenId": "4a635b3e-7571-4947-90db-f3ce180ab5ac",
  "tenantId": "ae079404-b9b6-451c-a5f9-b8bec4a01d0d",
  "userId": "2e20ddf9-d346-4ac2-968a-dd79512f0826",
  "userGroupId": "d657d61b-a575-4308-aa2a-97420d1c1551",
  "deviceId": "6a72a4cd-659b-4468-8852-9045a02f7357",
  "deviceGroupId": "414c8841-3e07-44ad-9b6d-68c0a7cc46ff",
  "applicationId": "4afde0cb-2a74-469e-85dd-e7681a611303",
  "applicationVersionId": "bdd323f0-5715-4256-ae00-2bc715d95007",
  "requestedAnchorHex": "sample string 9",
  "currentDatabaseAnchorHex": "sample string 10",
  "pushToken": "sample string 11",
  "options": "sample string 12",
  "createdDateUtc": "2026-02-07T15:42:01.7392018+00:00",
  "updatedDateUtc": "2026-02-07T15:42:01.7392018+00:00"
}

application/xml, text/xml

Sample:
<SyncTokenRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlueDot.Cyan.Server.Core.Models.Rest.Version1">
  <CreatedDateUtc>2026-02-07T15:42:01.7392018+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2026-02-07T15:42:01.7392018+00:00</UpdatedDateUtc>
  <ApplicationId>4afde0cb-2a74-469e-85dd-e7681a611303</ApplicationId>
  <ApplicationVersionId>bdd323f0-5715-4256-ae00-2bc715d95007</ApplicationVersionId>
  <CurrentDatabaseAnchorHex>sample string 10</CurrentDatabaseAnchorHex>
  <DeviceGroupId>414c8841-3e07-44ad-9b6d-68c0a7cc46ff</DeviceGroupId>
  <DeviceId>6a72a4cd-659b-4468-8852-9045a02f7357</DeviceId>
  <Options>sample string 12</Options>
  <PushToken>sample string 11</PushToken>
  <RequestedAnchorHex>sample string 9</RequestedAnchorHex>
  <SyncTokenId>4a635b3e-7571-4947-90db-f3ce180ab5ac</SyncTokenId>
  <TenantId>ae079404-b9b6-451c-a5f9-b8bec4a01d0d</TenantId>
  <UserGroupId>d657d61b-a575-4308-aa2a-97420d1c1551</UserGroupId>
  <UserId>2e20ddf9-d346-4ac2-968a-dd79512f0826</UserId>
</SyncTokenRepresentation>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SyncTokenRepresentation'.