Table of contents
Schedules
Download API definition:
This API is a Technical Preview and is available for testing purposes only. Do not use in production.
GET https://dev-api.bentley.com/schedules/{scheduleId}/imports/microsoft-project/synchronizers/{synchronizerId}

Get Microsoft Project Synchronizer

Request parameters

Name
Required?
Description
scheduleId
Yes

The unique identifier of the Schedule.

synchronizerId
Yes

The unique identifier of Microsoft Project Synchronizer.

Request headers

Name
Required?
Description
If-None-Match
No

A header that makes the request conditional. If the ETag of the requested resource or resource collection matches the provided value, a 304 (Not Modified) response is returned. For more information see the official documentation.

Authorization
Yes

OAuth access token with itwin-platform scope

Accept
Yes

Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.

Response 200 OK

OK

json
{
    "synchronizer": {
        "deleted": false,
        "id": "c4e997a4-83e0-485b-b59c-13f210683f23",
        "originalProjectName": "Roads",
        "originalProjectPath": "C:\\documents\\roads",
        "originalSynchronizationTime": "2019-12-03T12:00:00Z",
        "originalSynchronizationType": "Import",
        "projectName": "Roads",
        "projectPath": "C:\\documents\\roads",
        "synchronizationDetails": {
            "created": {
                "calendars": 1,
                "resources": 4,
                "tasks": 11
            },
            "deleted": {
                "resources": 2,
                "tasks": 4
            },
            "updated": {
                "resources": 1,
                "tasks": 6
            },
            "warnings": [{
                    "message": "Warning: Resource (UID=R2) was assigned to task (UID=T4) more than once, assignment (UID=A3) was ignored."
                },
                {
                    "message": "Warning: Resource (UID=R4) was assigned to task (UID=T11) more than once, assignment (UID=A6) was ignored."
                }
            ]
        },
        "synchronizationTime": "2019-12-03T12:00:00Z",
        "synchronizationType": "Import",
        "synchronizerName": "Roads"
    }
}

Response headers

Name
Description
ETag

A header that identifies a specific version of a resource or resource collection. For more information see the official documentation.

Response 401 Unauthorized

This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.

json
{
    "error": {
        "code": "HeaderNotFound",
        "message": "Header Authorization was not found in the request. Access denied."
    }
}

Response 404 Not Found

This response indicates that the provided Synchronizer or Schedule is not available.

json
{
    "error": {
        "code": "ScheduleNotFound",
        "message": "Requested Schedule is not available.",
        "target": "scheduleId"
    }
}

Response 429 Too many requests

This response indicates that the client sent more requests than allowed by this API for the current tier of the client.

json
{
    "error": {
        "code": "RateLimitExceeded",
        "message": "The client sent more requests than allowed by this API for the current tier of the client."
    }
}

Response headers

Name
Description
retry-after

Number of seconds to wait until client is allowed to make more requests.

Microsoft Project Synchronizer

Representation of a Microsoft Project Synchronizer.

Name
Type
Description
deleted
Boolean, null

Is this Synchronizer deleted.

id
String

The unique identifier of the Synchronizer.

originalProjectName
String

The name of the initial import project.

originalProjectPath
String

The path of the initial import project.

originalSynchronizationTime
Date-time

The date on which the initial import occurred.

originalSynchronizationType

The type of the initial import.

projectName
String

The name of the project.

projectPath
String

The path of the project.

synchronizationDetails

Expanded details of the Synchronizer.

synchronizationTime
Date-time

The date on which the synchronization occurred.

synchronizationType

The type of synchronization.

synchronizerName
String

The name of the Synchronizer.

Microsoft Project Synchronizer Response

Container for Microsoft Project Synchronizer object.

Name
Type
Description
synchronizer

Microsoft Project Synchronizer Properties.

Synchronization Type

Synchronization Type specifies if it was an import, export or synchronization.

Name
Type
Description
Import
String
Export
String
SynchronizeFrom
String
SynchronizeTo
String
Unknown
String

Synchronizer Expanded Data Model

Expanded details of a Synchronizer.

Name
Type
Description
created

Detailed amounts of created entities.

deleted

Detailed amounts of deleted entities.

updated

Detailed amounts of updated entities.

warnings

Warnings that occurred during last Synchronization.

Synchronizer Logs Message

Synchronizer Logs Message.

Name
Type
Description
message
String

Log message of a Synchronizer Logs Message.

Synchronizer Write Logs Model

Synchronizer modification counts.

Name
Type
Description
activityCodeValues
Integer, null

The amount of Activity Code Values modified.

activityCodeValuesAssignments
Integer, null

The mount of Activity Code Values Assignments modified.

activityCodes
Integer, null

The amount of Activity Codes modified.

calendars
Integer, null

The amount of Calenders modified.

costCodes
Integer, null

The amount of Cost Codes modified.

links
Integer, null

The amount of Links modified.

resourceAssignments
Integer, null

The amount of Resource Assignments modified.

resourceCodeValues
Integer, null

The amount of Resource Code Values modified.

resourceCodes
Integer, null

The amount of Resource Codes modified.

resourceRates
Integer, null

The amount of Resource Rates modified.

resources
Integer, null

The amount of Resources modified.

taskCosts
Integer, null

The amount of Task Costs modified.

tasks
Integer, null

The amount of Tasks modified.

userFieldValues
Integer, null

The mount of User Field Values modified.

userFields
Integer, null

The mount of User Fields modified.

Error

Contains error information.

Name
Type
Description
code
String

One of a server-defined set of error codes.

message
String

A human-readable representation of the error.

target
String, null

The target of the error.

Error Response

Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.

Name
Type
Description
error

Error information.

Was this page helpful?