Create a project resource assignment
post
/fscmRestApi/resources/11.13.18.05/projectResourceAssignments
Request
Header Parameters
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode:
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
AssignmentComments: string
Title:
Assignment Additional CommentsMaximum Length:2000Additional details for the project resource assignment. -
AssignmentEndDate: string
(date)
Title:
Assignment End DateThe date until which the resource is engaged on the project assignment. If no value is passed when creating the assignment, it defaults to project end date. -
AssignmentExternalIdentifier: string
Title:
Assignment External IdentifierMaximum Length:100Identifier of the assignment in an external application. -
AssignmentHoursPerDay: number
Title:
Assignment Hours per DayA period of time measured in hours for each day for the project resource assignment. Mandatory if you are passing Use Project Calendar Flag attribute value as N. -
AssignmentHoursPerWeek: number
Title:
Assignment Hours per WeekHours for every week of the assignment duration. Applicable only if Use Weekly Hours Indicator value is true. -
AssignmentLocation: string
Title:
Assignment LocationMaximum Length:240Location for the work specified on the project resource assignment. -
AssignmentName: string
Title:
Assignment NameMaximum Length:240The name given to a project resource assignment. This name is used to identify an assignment. -
AssignmentStartDate: string
(date)
Title:
Assignment Start DateThe date from which the resource is assigned to the project assignment. If no value is passed when creating the assignment, it defaults to the system date for all already started projects and to project start date for all projects starting in future. If the assignment start date is provided and is before the project's start date, the assignment will still be created. -
AssignmentStatusCode: string
Title:
Assignment Status CodeMaximum Length:30Status code of the assignment. -
AssignmentStatusName: string
Title:
Assignment StatusMaximum Length:80Status of the assignment. -
AssignmentType: string
Title:
Assignment TypeMaximum Length:80Indicates if the assignment is a billable or a nonbillable assignment. -
AssignmentTypeCode: string
Title:
Assignment Type CodeMaximum Length:30Code to indicate if the assignment is a billable assignment or a nonbillable assignment. -
BillablePercent: integer
Title:
Billable PercentIndicates the percentage of assignment time that is billable for an assignment that is defined as Billable assignment. For a nonbillable assignment, the value is ignored. Valid values are positive integer between 0 and 100. -
BillablePercentReason: string
Title:
Billable Percent ReasonMaximum Length:80Indicates the reason why the billable percentage of the project resource assignment is less than 100%. For a nonbillable assignment, the value is ignored. -
BillablePercentReasonCode: string
Title:
Billable Percent Reason CodeMaximum Length:30Code that indicates the reason why the billable percentage of the project resource assignment is less than 100%. For a nonbillable assignment, the value is ignored. -
BillRate: number
Title:
Bill RateRate that represents the targeted bill rate for the resource on the assignment. -
BillRateCurrencyCode: string
Title:
Bill Rate Currency CodeMaximum Length:15Code of the currency used to define the bill rate. The bill rate currency must be the same as the project currency. -
CostRate: number
Title:
Cost RateRate that represents the cost rate for the resource on the assignment. -
CostRateCurrencyCode: string
Title:
Cost Rate Currency CodeMaximum Length:15Code of the currency used to define the cost rate. -
FridayHours: number
Title:
Friday HoursHours for Friday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
MondayHours: number
Title:
Monday HoursHours for Monday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator value is true. -
ProjectId: integer
Title:
Project IDUnique identifier of the project associated to the resource assignment. To identify the project, you may provide a value only for this attribute, the Project Number attribute, or the Project Name attribute. Project is mandatory when creating an assignment. -
ProjectManagementFlowFlag: boolean
Title:
Project Management Flow IndicatorFlag that indicates if the action is called in the project manager flow. Set this value only if the service is being called in the project manager flow. Default value will be set to resource management flow which is the primary applicationation of the service. -
ProjectName: string
Title:
Project NameMaximum Length:240Name of the project associated to the resource assignment. To identify the project associated to the assignment, you may provide a value only for this attribute, Project ID attribute, or the Project Number attribute. -
ProjectNumber: string
Title:
Project NumberMaximum Length:25Unique number of the project associated to the resource assignment. To identify the project associated to the assignment, you may provide a value only for this attribute or the Project ID attribute or the Project Name attribute. -
ProjectRoleId: integer
Title:
Project Role IDIdentifier of the role that the selected resource is assigned to on a project assignment. To identify the project role, you may provide a value for this attribute or for Project Role Name attribute but not both. Project Role value is mandatory when creating an assignment. -
ProjectRoleName: string
Title:
Project Role NameMaximum Length:240Name of the role that the selected resource is assigned to on a project resource assignment. To identify the project role, you may provide a value for only this attribute or for Project Role ID attribute but not both. -
ReservationExpirationDate: string
(date)
Title:
Reservation Expiration DateDate until which the resource should be reserved on the project. On or before this date, you should either confirm the assignment or cancel the reservation. -
ReservationReason: string
Title:
Reservation ReasonMaximum Length:80Reason for reserving a resource on the project resource assignment. You may provide a value for this attribute or for Resource Reason Code attribute but not both. Applies only if the Assignment Status is RESERVED. -
ReservationReasonCode: string
Title:
Reservation ReasonMaximum Length:30Code for the reason for reserving a resource on the project resource assignment. You may provide a value for this attribute or for Reservation Reason attribute but not both. Applies only if the Assignment Status is RESERVED. -
ResourceEmail: string
Title:
Resource EmailMaximum Length:240Email of the resource who is selected for the assignment. To identify the resource, you may provide a value for this attribute or for Resource ID attribute but not both. -
ResourceId: integer
Title:
Resource IDUnique identifier of the resource who is selected for the assignment. To identify the resource, you may provide a value for this attribute or for Resource Email attribute but not both. Resource is mandatory when creating an assignment. -
SaturdayHours: number
Title:
Saturday HoursHours for Saturday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
SundayHours: number
Title:
Sunday HoursHours for Sunday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
ThursdayHours: number
Title:
Thursday HoursHours for Thursday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
TuesdayHours: number
Title:
Tuesday HoursHours for Tuesday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
UseProjectCalendarFlag: boolean
Title:
Use Project Calendar IndicatorMaximum Length:1Default Value:trueIndicates if the hours for the assignment are provided in Assignment Hours Per Day attribute or if it should be derived from the project calendar. Valid values are Y and N. If the value is Y, the assignment hours are derived from the project calendar. -
UseVariableHoursFlag: boolean
Title:
Use Variable Hours IndicatorIndicates if the hours for the assignment are variable for every day of the week or not. Valid values are True and False. If the value is True, the assignment hours are derived from the attributes Monday Hours through Sunday Hours. -
UseWeeklyHoursFlag: boolean
Title:
Use Weekly Hours IndicatorIndicates if the hours for the assignment are for every week or not. Valid values are True and False. If the value is True, the assignment hours are derived from the attribute AssignmentHoursPerWeek. -
WednesdayHours: number
Title:
Wednesday HoursHours for Wednesday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : projectResourceAssignments-item-response
Type:
Show Source
object-
AdjustmentType: string
Title:
Adjustment TypeRead Only:trueMaximum Length:80Type of adjustment if some adjustment has happenned on the project resource assignment. -
AdjustmentTypeCode: string
Title:
Adjustment Type CodeRead Only:trueMaximum Length:30Code for the adjustment performed on the project resource assignment. -
AssignmentComments: string
Title:
Assignment Additional CommentsMaximum Length:2000Additional details for the project resource assignment. -
AssignmentEndDate: string
(date)
Title:
Assignment End DateThe date until which the resource is engaged on the project assignment. If no value is passed when creating the assignment, it defaults to project end date. -
AssignmentExternalIdentifier: string
Title:
Assignment External IdentifierMaximum Length:100Identifier of the assignment in an external application. -
AssignmentHoursPerDay: number
Title:
Assignment Hours per DayA period of time measured in hours for each day for the project resource assignment. Mandatory if you are passing Use Project Calendar Flag attribute value as N. -
AssignmentHoursPerWeek: number
Title:
Assignment Hours per WeekHours for every week of the assignment duration. Applicable only if Use Weekly Hours Indicator value is true. -
AssignmentId: integer
Title:
Assignment IDRead Only:trueUnique identifier of the project resource assignment. -
AssignmentLocation: string
Title:
Assignment LocationMaximum Length:240Location for the work specified on the project resource assignment. -
AssignmentName: string
Title:
Assignment NameMaximum Length:240The name given to a project resource assignment. This name is used to identify an assignment. -
AssignmentStartDate: string
(date)
Title:
Assignment Start DateThe date from which the resource is assigned to the project assignment. If no value is passed when creating the assignment, it defaults to the system date for all already started projects and to project start date for all projects starting in future. If the assignment start date is provided and is before the project's start date, the assignment will still be created. -
AssignmentStatusCode: string
Title:
Assignment Status CodeMaximum Length:30Status code of the assignment. -
AssignmentStatusName: string
Title:
Assignment StatusMaximum Length:80Status of the assignment. -
AssignmentType: string
Title:
Assignment TypeMaximum Length:80Indicates if the assignment is a billable or a nonbillable assignment. -
AssignmentTypeCode: string
Title:
Assignment Type CodeMaximum Length:30Code to indicate if the assignment is a billable assignment or a nonbillable assignment. -
BillablePercent: integer
Title:
Billable PercentIndicates the percentage of assignment time that is billable for an assignment that is defined as Billable assignment. For a nonbillable assignment, the value is ignored. Valid values are positive integer between 0 and 100. -
BillablePercentReason: string
Title:
Billable Percent ReasonMaximum Length:80Indicates the reason why the billable percentage of the project resource assignment is less than 100%. For a nonbillable assignment, the value is ignored. -
BillablePercentReasonCode: string
Title:
Billable Percent Reason CodeMaximum Length:30Code that indicates the reason why the billable percentage of the project resource assignment is less than 100%. For a nonbillable assignment, the value is ignored. -
BillRate: number
Title:
Bill RateRate that represents the targeted bill rate for the resource on the assignment. -
BillRateCurrencyCode: string
Title:
Bill Rate Currency CodeMaximum Length:15Code of the currency used to define the bill rate. The bill rate currency must be the same as the project currency. -
CanceledBy: string
Title:
Canceled ByRead Only:trueMaximum Length:240The user who canceled the project resource assignment, if the assignment is canceled. -
CanceledByResourceId: integer
(int64)
Title:
Canceled by Resource IDRead Only:trueUnique Identifier of the resource who canceled the project resource assignment, if the assignment is canceled. -
CancellationDate: string
(date)
Title:
Cancellation DateRead Only:trueDate of cancellation if the assignment is canceled. -
CancellationReason: string
Title:
Cancellation ReasonRead Only:trueMaximum Length:2000Reason of cancellation if the assignment is canceled. -
CostRate: number
Title:
Cost RateRate that represents the cost rate for the resource on the assignment. -
CostRateCurrencyCode: string
Title:
Cost Rate Currency CodeMaximum Length:15Code of the currency used to define the cost rate. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the record. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the record was created. -
FridayHours: number
Title:
Friday HoursHours for Friday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the record. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MondayHours: number
Title:
Monday HoursHours for Monday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator value is true. -
ProjectId: integer
Title:
Project IDUnique identifier of the project associated to the resource assignment. To identify the project, you may provide a value only for this attribute, the Project Number attribute, or the Project Name attribute. Project is mandatory when creating an assignment. -
ProjectManagementFlowFlag: boolean
Title:
Project Management Flow IndicatorFlag that indicates if the action is called in the project manager flow. Set this value only if the service is being called in the project manager flow. Default value will be set to resource management flow which is the primary applicationation of the service. -
ProjectName: string
Title:
Project NameMaximum Length:240Name of the project associated to the resource assignment. To identify the project associated to the assignment, you may provide a value only for this attribute, Project ID attribute, or the Project Number attribute. -
ProjectNumber: string
Title:
Project NumberMaximum Length:25Unique number of the project associated to the resource assignment. To identify the project associated to the assignment, you may provide a value only for this attribute or the Project ID attribute or the Project Name attribute. -
ProjectRoleId: integer
Title:
Project Role IDIdentifier of the role that the selected resource is assigned to on a project assignment. To identify the project role, you may provide a value for this attribute or for Project Role Name attribute but not both. Project Role value is mandatory when creating an assignment. -
ProjectRoleName: string
Title:
Project Role NameMaximum Length:240Name of the role that the selected resource is assigned to on a project resource assignment. To identify the project role, you may provide a value for only this attribute or for Project Role ID attribute but not both. -
ProjResourceId: integer
(int64)
Title:
Project Resource IDRead Only:trueIdentifier of the project labor resource associated with the project resource assignment. -
ReservationExpirationDate: string
(date)
Title:
Reservation Expiration DateDate until which the resource should be reserved on the project. On or before this date, you should either confirm the assignment or cancel the reservation. -
ReservationReason: string
Title:
Reservation ReasonMaximum Length:80Reason for reserving a resource on the project resource assignment. You may provide a value for this attribute or for Resource Reason Code attribute but not both. Applies only if the Assignment Status is RESERVED. -
ReservationReasonCode: string
Title:
Reservation ReasonMaximum Length:30Code for the reason for reserving a resource on the project resource assignment. You may provide a value for this attribute or for Reservation Reason attribute but not both. Applies only if the Assignment Status is RESERVED. -
ResourceEmail: string
Title:
Resource EmailMaximum Length:240Email of the resource who is selected for the assignment. To identify the resource, you may provide a value for this attribute or for Resource ID attribute but not both. -
ResourceHCMPersonId: integer
(int64)
Title:
Resource Person IDRead Only:trueHCM person identifier for the project enterprise resource who is selected for the assignment. -
ResourceId: integer
Title:
Resource IDUnique identifier of the resource who is selected for the assignment. To identify the resource, you may provide a value for this attribute or for Resource Email attribute but not both. Resource is mandatory when creating an assignment. -
ResourceName: string
Title:
Resource NameRead Only:trueMaximum Length:240Name of the resource that is selected for the assignment. -
SaturdayHours: number
Title:
Saturday HoursHours for Saturday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
SundayHours: number
Title:
Sunday HoursHours for Sunday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
ThursdayHours: number
Title:
Thursday HoursHours for Thursday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
TotalAssignedHours: number
Title:
Total Assigned HoursRead Only:trueThe total number of hours for a project resource assignment calculated based on the date range, daily hours, working days, and calendar exceptions. -
TuesdayHours: number
Title:
Tuesday HoursHours for Tuesday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true. -
UseDailyHoursFlag: boolean
Title:
Use Daily Hours IndicatorRead Only:trueIndicates if the hours for the assignment vary each day. Valid values are True and False. If the value is True, the assignment hours can vary each day of the project resource assignment. -
UseProjectCalendarFlag: boolean
Title:
Use Project Calendar IndicatorMaximum Length:1Default Value:trueIndicates if the hours for the assignment are provided in Assignment Hours Per Day attribute or if it should be derived from the project calendar. Valid values are Y and N. If the value is Y, the assignment hours are derived from the project calendar. -
UseVariableHoursFlag: boolean
Title:
Use Variable Hours IndicatorIndicates if the hours for the assignment are variable for every day of the week or not. Valid values are True and False. If the value is True, the assignment hours are derived from the attributes Monday Hours through Sunday Hours. -
UseWeeklyHoursFlag: boolean
Title:
Use Weekly Hours IndicatorIndicates if the hours for the assignment are for every week or not. Valid values are True and False. If the value is True, the assignment hours are derived from the attribute AssignmentHoursPerWeek. -
WednesdayHours: number
Title:
Wednesday HoursHours for Wednesday of every week for the assignment time period. Applicable only if Use Variable Hours Indicator is true.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Links
- adjustAssignmentSchedule
-
Parameters:
- AssignmentId:
$request.path.AssignmentId
Perform project resource assignment schedule change via this action. The schedule change can happen due to assignment date changes and/or changes in assignment hours per day. The assignment must be in Confirmed or Reserved status to perform this action. - AssignmentId:
- cancelAssignment
-
Operation: /fscmRestApi/resources/11.13.18.05/projectResourceAssignments/{AssignmentId}/action/cancelAssignmentParameters:
- AssignmentId:
$request.path.AssignmentId
Cancel a project resource assignment. - AssignmentId:
- cancelAssignmentAdjustment
-
Parameters:
- AssignmentId:
$request.path.AssignmentId
Cancel project resource adjustment request with this action. The request must be in pending adjustment status to allow this action. - AssignmentId:
- confirmReservedAssignment
-
Parameters:
- AssignmentId:
$request.path.AssignmentId
Confirm a reserved project resource assignment. - AssignmentId:
- replaceResource
-
Operation: /fscmRestApi/resources/11.13.18.05/projectResourceAssignments/{AssignmentId}/action/replaceResourceParameters:
- AssignmentId:
$request.path.AssignmentId
Replace existing resource with a different resource on a project resource assignment with this action. The resource assignment must be in confirmed or reserved status to allow this action. - AssignmentId:
- validateForGanttAdjustment
-
Parameters:
- AssignmentId:
$request.path.AssignmentId
The method validates single assignment schedule change. It returns back a list of errors and warnings if the adjusted schedule doesn't pass the validation. - AssignmentId:
Examples
Example 1
The following example shows how to create a project resource assignment by submitting a POST request on the REST resource using cURL.
curl --user ppm_cloud_user -X POST -d @example_request_payload.json --header "Content-Type: application/json" https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectResourceAssignments
Example 1 Request Body
The following shows an example of the request body in JSON format.
{
"ProjectName": "zBIQA_Rel8_RM9",
"ProjectRoleName": "Team Member",
"ResourceEmail": "Veronica.Johnson@Oracle.com",
"AssignmentStatusCode" : "ASSIGNED",
"AssignmentLocation" : "San Francisco",
"AssignmentStartDate" : "2019-06-27",
"AssignmentEndDate" : "2019-06-27",
"AssignmentComments" : "RRF-PJR Direct Assignment",
"ProjectManagementFlowFlag": "false",
"UseProjectCalendarFlag": "false",
"UseVariableHoursFlag": "true",
"SundayHours": 1,
"MondayHours": 2,
"TuesdayHours": 3,
"WednesdayHours": 4,
"ThursdayHours": 5,
"FridayHours": 6,
"SaturdayHours": 7
}
Example 1 Response Body
The following shows an example of the response body in JSON format.
{
"AssignmentId": 300100184860571,
"ResourceId": 300100025504859,
"ResourceEmail": "Veronica.Johnson@Oracle.com",
"ResourceHCMPersonId": 300100007741638,
"ResourceName": "Veronica Johnson",
"ProjectId": 300100025404084,
"ProjectNumber": "300100025404084",
"ProjectName": "zBIQA_Rel8_RM9",
"AssignmentStartDate": "2019-06-27",
"AssignmentEndDate": "2019-06-27",
"AssignmentStatusCode": "ASSIGNED",
"AssignmentStatusName": "Confirmed",
"ProjectRoleId": 13,
"ProjectRoleName": "Team Member",
"UseProjectCalendarFlag": false,
"AssignmentHoursPerDay": null,
"CostRateCurrencyCode": "USD",
"CostRate": 28,
"BillRateCurrencyCode": "USD",
"BillRate": 38,
"AssignmentLocation": "San Francisco",
"ReservationReasonCode": null,
"ReservationReason": null,
"ReservationExpirationDate": null,
"AssignmentComments": "RRF-PJR Direct Assignment",
"AssignmentExternalIdentifier": null,
"AdjustmentType": null,
"AdjustmentTypeCode": null,
"CanceledBy": null,
"CanceledByResourceId": null,
"CancellationDate": null,
"CancellationReason": null,
"CreationDate": "2019-12-11T07:45:59+00:00",
"CreatedBy": "ABRAHAM.MASON",
"LastUpdateDate": "2019-12-11T07:45:59.708+00:00",
"LastUpdatedBy": "ABRAHAM.MASON",
"AssignmentTypeCode": null,
"BillablePercent": null,
"BillablePercentReasonCode": null,
"AssignmentType": null,
"BillablePercentReason": null,
"ProjectManagementFlowFlag": "false",
"UseVariableHoursFlag": "true",
"SundayHours": 1,
"MondayHours": 2,
"TuesdayHours": 3,
"WednesdayHours": 4,
"ThursdayHours": 5,
"FridayHours": 6,
"SaturdayHours": 7,
"links": [
{
"rel": "self",
"href": "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectResourceAssignments/300100184860571",
"name": "projectResourceAssignments",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectResourceAssignments/300100184860571",
"name": "projectResourceAssignments",
"kind": "item"
},
{
"rel": "action",
"href": "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectResourceAssignments/300100184860571/action/cancelAssignment",
"name": "cancelAssignment",
"kind": "other"
},
{
"rel": "action",
"href": "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectResourceAssignments/300100184860571/action/adjustAssignmentSchedule",
"name": "adjustAssignmentSchedule",
"kind": "other"
}
]
}
Example 2
The following example shows how to create a project resource assignment by submitting a POST request on the REST resource using cURL.
curl --user ppm_cloud_user -X POST -d @example_request_payload.json --header "Content-Type: application/json" https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectResourceAssignments
Example 2 Request Body
The following shows an example of the request body in JSON format.
{
"ResourceEmail" : "Olivia.Newman@Oracle.com",
"ProjectName" : "Test Project",
"ProjectRoleName" : "Team Member",
"AssignmentStatusCode" : "ASSIGNED",
"AssignmentLocation" : "San Francisco",
"AssignmentStartDate" : "2020-09-07",
"AssignmentEndDate" : "2020-09-27",
"AssignmentComments" : "Test",
"ProjectManagementFlowFlag": false,
"UseProjectCalendarFlag" : false,
"UseVariableHoursFlag" : false,
"UseWeeklyHoursFlag" : true,
"AssignmentHoursPerWeek":25
}
Example 2 Response Body
The following shows an example of the response body in JSON format.
{
"AssignmentId": 300100186429922,
"ResourceId": 300100026211699,
"ResourceEmail": "Olivia.Newman@Oracle.com",
"ResourceHCMPersonId": 300100007711585,
"ResourceName": "Olivia Newman",
"ProjectId": 300100027033812,
"ProjectNumber": "Test Project",
"ProjectName": "Test Project",
"AssignmentStartDate": "2020-09-07",
"AssignmentEndDate": "2020-09-27",
"AssignmentStatusCode": "ASSIGNED",
"AssignmentStatusName": "Confirmed",
"ProjectRoleId": 13,
"ProjectRoleName": "Team Member",
"UseProjectCalendarFlag": false,
"AssignmentHoursPerDay": null,
"CostRateCurrencyCode": "USD",
"CostRate": 125,
"BillRateCurrencyCode": "USD",
"BillRate": 175,
"AssignmentLocation": "San Francisco",
"ReservationReasonCode": null,
"ReservationReason": null,
"ReservationExpirationDate": null,
"AssignmentComments": "Test",
"AssignmentExternalIdentifier": null,
"AdjustmentType": null,
"AdjustmentTypeCode": null,
"CanceledBy": null,
"CanceledByResourceId": null,
"CancellationDate": null,
"CancellationReason": null,
"CreationDate": "2020-08-31T17:14:55+00:00",
"CreatedBy": "Connor.Horton",
"LastUpdateDate": "2020-08-31T17:14:57.020+00:00",
"LastUpdatedBy": "Connor.Horton",
"AssignmentTypeCode": null,
"BillablePercent": null,
"BillablePercentReasonCode": null,
"AssignmentType": null,
"BillablePercentReason": null,
"ProjectManagementFlowFlag": "false",
"UseVariableHoursFlag": "false",
"SundayHours": null,
"MondayHours": null,
"TuesdayHours": null,
"WednesdayHours": null,
"ThursdayHours": null,
"FridayHours": null,
"SaturdayHours": null,
"UseWeeklyHoursFlag": "true",
"AssignmentHoursPerWeek": 25,
"links": [
{..},{..}...
]
}