Creates a Sync Configuration for a Schedule.
Sync Configuration
Creates a Sync Configuration that links a v6.5 Schedule with a v10 Schedule for synchronization purposes.
Authentication
Requires Authorization header with valid Bearer token for scope itwin-platform.
For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.
Rate limits
All iTwin Platform API operations have a rate limit. For more documentation on that visit Rate limits and quotas page.
Request parameters
The unique identifier of the Schedule.
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.
Request body
Sync Configuration Create Request
The unique identifier of the v10 Schedule.
Example
{ "v10ScheduleId": "4c001b1a-0081-4b6c-be69-07b7009fcf15" }
Response 201 Created
Created
{ "syncConfiguration": { "isEnabled": true, "v10ScheduleId": "4c001b1a-0081-4b6c-be69-07b7009fcf15", "v65ScheduleId": "e9619567-54ac-45b2-9c2f-d567b761c555" } }
Response 400 Bad Request
The 400 (Bad Request) status code indicates that the request cannot be processed by the server due to a client error (e.g. malformed request syntax)
{ "error": { "code": "InvalidSchedulesRequest", "details": [{ "code": "InvalidProperty", "message": "The v10 Schedule iModel does not match the v6.5 Schedule iModel.", "target": "v10ScheduleId" }], "message": "The request contains invalid properties." } }
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.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
Response 404 Not Found
This response indicates that the provided Schedule is not available.
{ "error": { "code": "ScheduleNotFound", "message": "Requested Schedule is not available.", "target": "scheduleId" } }
Response 409 Conflict
Indicates that the entity being created conflicts with an existing one.
{ "error": { "code": "ConfigurationExists", "message": "Configuration with provided v6.5 Schedule id already exists." } }
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.
{ "error": { "code": "RateLimitExceeded", "message": "The client sent more requests than allowed by this API for the current tier of the client." } }
Response headers
Number of seconds to wait until client is allowed to make more requests.
Error
Contains error information.
One of a server-defined set of error codes.
The target of the error.
A human-readable representation of the error.
{ "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "target": { "type": "string", "nullable": true, "description": "The target of the error." }, "message": { "type": "string", "description": "A human-readable representation of the error." } }, "description": "Contains error information.", "additionalProperties": true }
DetailedError
Contains error information and an array of more specific errors.
One of a server-defined set of error codes.
The target of the error.
A human-readable representation of the error.
{ "type": "object", "required": [ "code", "message", "details" ], "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "target": { "type": "string", "nullable": true, "description": "The target of the error." }, "details": { "type": "array", "items": { "$ref": "#/components/schemas/Error" }, "description": "Optional array of more specific errors." }, "message": { "type": "string", "description": "A human-readable representation of the error." } }, "description": "Contains error information and an array of more specific errors.", "additionalProperties": true }
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.
{ "type": "object", "title": "Error Response", "required": [ "error" ], "properties": { "error": { "$ref": "#/components/schemas/Error", "description": "Error information." } }, "description": "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.", "additionalProperties": false }
Sync Configuration
Representation of a Sync Configuration.
Is the Sync Configuration enabled.
The unique identifier of the v10 Schedule.
The unique identifier of the v6.5 Schedule.
{ "type": "object", "title": "Sync Configuration", "properties": { "isEnabled": { "type": "boolean", "nullable": true, "description": "Is the Sync Configuration enabled." }, "v10ScheduleId": { "type": "string", "description": "The unique identifier of the v10 Schedule." }, "v65ScheduleId": { "type": "string", "description": "The unique identifier of the v6.5 Schedule." } }, "description": "Representation of a Sync Configuration.", "additionalProperties": false }
Detailed 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.
{ "type": "object", "title": "Detailed Error Response", "required": [ "error" ], "properties": { "error": { "$ref": "#/components/schemas/DetailedError", "description": "Error Detailed information." } }, "description": "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.", "additionalProperties": false }
Sync Configuration Response
Container for Sync Configuration object.
{ "type": "object", "title": "Sync Configuration Response", "properties": { "syncConfiguration": { "$ref": "#/components/schemas/SyncConfiguration" } }, "description": "Container for Sync Configuration object.", "additionalProperties": false }
Sync Configuration Create Request
Properties of the Sync Configuration to be created.
The unique identifier of the v10 Schedule.
{ "type": "object", "title": "Sync Configuration Create Request", "properties": { "v10ScheduleId": { "type": "string", "description": "The unique identifier of the v10 Schedule." } }, "description": "Properties of the Sync Configuration to be created.", "additionalProperties": false }
Was this page helpful?