Batch Integrate Resources with an External Data Source

post

/api/restapi/resource/syncBatch

Send a request to this endpoint to create or update one or more integrated resources. If an object provided in the request body does not exist in the application, an object is created using the request data. Integrated objects can only be modified using the API.

Request

Header Parameters
  • Enabling this boolean flag will fail the request if an error occurs while processing any resource sent as part of the request.
    Allowed Values: [ "true", "false" ]
    Default Value: false
Supported Media Types
Request Body - application/json ()
Root Schema : List<ApiEntityExternallySourcedResourceInput>
Type: array
Title: List<ApiEntityExternallySourcedResourceInput>
Show Source
  • ApiEntityExternallySourcedResourceInput
    Title: ApiEntityExternallySourcedResourceInput
    This entity represents a ExternallySourcedResource object, a unique ExternallySourcedResource object can be identified by the following combinations of the fields.
    • resourceId
    • resourceCode,resourceClass,workspaceId
    • resourceCode,resourceClass,workspaceCode
    • resourceCode,resourceClass,projectId
    • resourceCode,resourceClass,projectCode,workspaceCode
Nested Schema : ApiEntityExternallySourcedResourceInput
Type: object
Title: ApiEntityExternallySourcedResourceInput
This entity represents a ExternallySourcedResource object, a unique ExternallySourcedResource object can be identified by the following combinations of the fields.
  • resourceId
  • resourceCode,resourceClass,workspaceId
  • resourceCode,resourceClass,workspaceCode
  • resourceCode,resourceClass,projectId
  • resourceCode,resourceClass,projectCode,workspaceCode
Show Source
Nested Schema : codeValuesResource
Type: array
The list of code values for a resource. This entity can only be used to assign codeValues or create codeValues on the fly.
Show Source
  • ApiEntityCodeValueResourceInput
    Title: ApiEntityCodeValueResourceInput
    This entity represents a CodeValueResource object, a unique CodeValueResource object can be identified by the following combinations of the fields.
    • codeValueResourceId
    • codeValueId
    • codeTypeId,codeValueCode
    • codeTypeCode,codeValueCode
    • codeTypeCode,parentId,codeValueCode
    • codeValueCode,codeTypeId,parentId
    • codeTypeCode,codeValueCode,projectCode
    • codeTypeCode,codeValueCode,projectId
    • codeTypeCode,codeValueCode,parentId,projectCode
    • codeTypeCode,codeValueCode,parentId,projectId
Nested Schema : resourceRoleAssignments
Type: array
The role assignment associated with the resource.
Show Source
  • ApiEntityResourceRoleAssignmentInput
    Title: ApiEntityResourceRoleAssignmentInput
    This entity represents a ResourceRoleAssignment object, a unique ResourceRoleAssignment object can be identified by the following combinations of the fields.
    • resourceRoleAssignmentId
    • resourceId,roleId
    • resourceCode,workspaceCode,roleId
    • resourceId,workspaceCode,roleCode
    • resourceCode,workspaceCode,roleCode
Nested Schema : resourceWorkRates
Type: array
The work rates of the resource.
Show Source
  • ApiEntityResourceWorkRateInput
    Title: ApiEntityResourceWorkRateInput
    This entity represents a ResourceWorkRate object, a unique ResourceWorkRate object can be identified by the following combinations of the fields.
    • resourceWorkRateId
    • effectiveStartDate,workspaceResourceId
    • effectiveStartDate,resourceId,workspaceId
    • effectiveStartDate,resourceId,workspaceCode
    • effectiveStartDate,resourceCode,resourceClass,workspaceId
    • effectiveStartDate,resourceCode,resourceClass,workspaceCode
Nested Schema : user
The user associated with the resource.
Match All
The user associated with the resource.
Show Source
Nested Schema : ApiEntityCodeValueResourceInput
Type: object
Title: ApiEntityCodeValueResourceInput
This entity represents a CodeValueResource object, a unique CodeValueResource object can be identified by the following combinations of the fields.
  • codeValueResourceId
  • codeValueId
  • codeTypeId,codeValueCode
  • codeTypeCode,codeValueCode
  • codeTypeCode,parentId,codeValueCode
  • codeValueCode,codeTypeId,parentId
  • codeTypeCode,codeValueCode,projectCode
  • codeTypeCode,codeValueCode,projectId
  • codeTypeCode,codeValueCode,parentId,projectCode
  • codeTypeCode,codeValueCode,parentId,projectId
Show Source
Nested Schema : ApiEntityResourceRoleAssignmentInput
Type: object
Title: ApiEntityResourceRoleAssignmentInput
This entity represents a ResourceRoleAssignment object, a unique ResourceRoleAssignment object can be identified by the following combinations of the fields.
  • resourceRoleAssignmentId
  • resourceId,roleId
  • resourceCode,workspaceCode,roleId
  • resourceId,workspaceCode,roleCode
  • resourceCode,workspaceCode,roleCode
Show Source
Nested Schema : ApiEntityResourceWorkRateInput
Type: object
Title: ApiEntityResourceWorkRateInput
This entity represents a ResourceWorkRate object, a unique ResourceWorkRate object can be identified by the following combinations of the fields.
  • resourceWorkRateId
  • effectiveStartDate,workspaceResourceId
  • effectiveStartDate,resourceId,workspaceId
  • effectiveStartDate,resourceId,workspaceCode
  • effectiveStartDate,resourceCode,resourceClass,workspaceId
  • effectiveStartDate,resourceCode,resourceClass,workspaceCode
Show Source
Nested Schema : resourceWorkRateCost
An entity containing the price per unit fields of a resource work rate.
Match All
An entity containing the price per unit fields of a resource work rate.
Show Source
Nested Schema : ApiEntityResourceWorkRateCostInput
Type: object
Title: ApiEntityResourceWorkRateCostInput
Show Source
  • Minimum Value: 0
    The price per unit associated with the resource or role. The price per unit is used to calculate costs for resources or roles assigned to activities.
  • Minimum Value: 0
    The price per unit associated with the resource or role. The price per unit is used to calculate costs for resources or roles assigned to activities.
  • Minimum Value: 0
    The price per unit associated with the resource or role. The price per unit is used to calculate costs for resources or roles assigned to activities.
  • Minimum Value: 0
    The price per unit associated with the resource or role. The price per unit is used to calculate costs for resources or roles assigned to activities.
  • Minimum Value: 0
    The price per unit associated with the resource or role. The price per unit is used to calculate costs for resources or roles assigned to activities.
  • The system-generated identifier of the work rate.
Nested Schema : ApiEntityExternallySourcedUser
Type: object
Title: ApiEntityExternallySourcedUser
Show Source
Nested Schema : userProducts
Type: array
A list of all user product fields and values in the form of key value pairs.
Show Source
Nested Schema : userSettings
Type: array
A list of all user setting fields and values in the form of key value pairs.
Show Source
Nested Schema : ApiEntityUserProduct
Type: object
Title: ApiEntityUserProduct
Show Source
Nested Schema : ApiEntityApplicationUserSetting
Type: object
Title: ApiEntityApplicationUserSetting
Show Source
  • The system-generated identifier of a user.
  • The unique identifier of a user's settings.
  • Minimum Length: 1
    Maximum Length: 255
    The namespace to which a user is assigned.
  • Allowed Values: [ "ActivitiesViewSettings", "ActivityNetworkSettings", "ReportsSummaryGridViewConfig", "DecimalPlaces", "NumberDecimalPlaces", "CurrencySymbol", "FourDigitYear", "LeadingZeros", "MonthName", "Separator", "DateFormat", "DigitGroupingSeparator", "DecimalSeparator", "DigitGroupingAndDecimalSymbols", "DigitGroupingStyle", "CurrencyNegativeFormat", "CurrencyPositiveFormat", "TabOrder", "AppVisibilityAndOrder", "ProjectCodesViewConfig", "ProfileImage", "ReportColWidth", "ReportScheduleColWidth", "ScheduleColWidth", "WorkspaceAndProjectDisplayFormat", "AnnouncementsLastReadTime", "LocationsViewConfig", "workflowTasksPrefs", "WorkflowViewLogViewConfig", "monitorWorkflowsPrefs", "startWorkflowsPrefs", "workflowDesignsPrefs", "workflowConfigsPrefs", "monitorWorkflowTasksPrefs", "formTemplatesPrefs", "formPreviewPrefs", "userDashboardPref", "SearchAll", "SearchWorkspaces", "SearchProjects", "SearchScopeItems", "SearchProjectCodes", "SearchGenericPortfolios", "SearchActivities", "SearchDocuments", "SearchUsers", "SearchRisks", "SearchIdeas", "SearchPrograms", "NumberResultsPerSearchResultsPage", "SpatialSearchDefaultUnits", "SpatialSearchDefaultDistance", "SpatialSearchAllProjectsKeywords", "TimeFormat", "DisplayTime", "StatusUpdateActivitySortOrder", "StatusUpdateActivitySortField", "StatusUpdateProjectFilter", "StatusUpdateProjectFilterArray", "StatusUpdateTaskStatusFilter", "StatusUpdateTimeframeFilter", "StatusUpdateWBSFilter", "StatusUpdateFromDateFilter", "StatusUpdateToDateFilter", "ScheduleCheckBeiTarget", "SmLayoutLatestView", "UserAppliedFilterIdList", "ShowMinutes", "DataDateInPageBanners", "ActualDateIndicator", "ConstraintDateIndicator", "ResourceAnalysisDataView", "ResourceAssignmentDataView", "DisplayUnits", "UnitsSubUnits", "UnitsLabel", "UnitsPerTimeFormat", "DisplayDuration", "DurationSubUnits", "DurationLabel", "WhenAssigningResourceToExistingActivity", "WhenResourceAndRoleShareActivityAssignment", "UnitsDecimalPlaces", "UnitsNumberDecimalPlaces", "DurationDecimalPlaces", "DurationNumberDecimalPlaces", "ImportClobberOptions", "HomeRecentsVisible", "UserFirstName", "UserLastName", "UserTitle", "UserLocale", "UserAlternateEmail", "UserPhoneNumber", "UserMobileNumber", "UserFaxNumber", "UserDisplayDensity", "UserTimeZone", "OnboardedForVersion", "WorkPlanGettingStartedShown", "CookiesAcknowledged", "PlaAccepted", "LastSearchIndexRequest", "displayScheduleLog", "LastAccessedWorkPackageId", "LastSearchIndexCompleted", "ExperimentalEnhancedPrint", "ExperimentalColumnMenu", "AutoSaveNamedViews" ]
    The name of a user setting.
  • Minimum Length: 1
    Maximum Length: 4000
    The value of a user setting.
  • Date when the record was last updated.
Examples

Back to Top

Response

Supported Media Types

207 Response

The object was successfully integrated.
Body ()
Root Schema : List<ApiEntityERPSyncApiResponse>
Type: array
Title: List<ApiEntityERPSyncApiResponse>
Show Source
Nested Schema : ApiEntityERPSyncApiResponse
Type: object
Title: ApiEntityERPSyncApiResponse
Show Source
  • identifier
    The unique identifier of the supported object returned based on the user input.
    This field can return any of the following entities determined based on the object for which the API call is invoked.
    Example : ProjectIdentifier is returned when Batch Integrate Projects with an External Data Source API is invoked.
  • Message is populated based on result of the operation.
    Success - Message will not be populated. Please refer the statusCode.
    Failure - Error message or reason for operation failure is populated.
    Warning - warning message is populated.
    The field is non-persistable and thus maximum length is not applicable.
  • The primary key field name associated with the integrated object.
    The field is non-persistable and thus maximum length is not applicable.
  • The unique identifier for the integrated object.
  • Maximum Length: 255
    The unique identifier of the object in an external source.
  • The response code representing the state of the API operation.
  • Read Only: true
    Date when the record was last updated.
Nested Schema : identifier
Type: object
The unique identifier of the supported object returned based on the user input.
This field can return any of the following entities determined based on the object for which the API call is invoked.
Example : ProjectIdentifier is returned when Batch Integrate Projects with an External Data Source API is invoked.
Match One Schema
Show Source
Nested Schema : ProjectIdentifier
Type: object
Title: ProjectIdentifier
Show Source
Nested Schema : CBSSheetCodeIdentifier
Type: object
Title: CBSSheetCodeIdentifier
Show Source
Nested Schema : ResourceIdentifier
Type: object
Title: ResourceIdentifier
Show Source

400 Response

Invalid Input.
Back to Top