Create a project team member
post
/fscmRestApi/resources/11.13.18.05/projects/{ProjectId}/child/ProjectTeamMembers
Request
Path Parameters
-
ProjectId(required): integer(int64)
Unique identifier of the project.
Header Parameters
-
Metadata-Context: string
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: string
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: string
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-
AssignmentType: string
Title:
Assignment TypeIndicates if a request is for a billable or a nonbillable assignment. Examples are BILLABLE, NON-BILLABLE, or leave blank. -
AssignmentTypeCode: string
Title:
Assignment Type CodeCode to indicate if a request is for a billable or a nonbillable assignment. Examples are BILLABLE, NON-BILLABLE, or leave blank. -
BillablePercent: string
Title:
Billable PercentIndicates the percentage of assignment time that is billable for an assignment that is defined as billable assignment. For a non-billable assignment, the value is ignored. Valid values are positive integers between 0 and 100. -
BillablePercentReason: string
Title:
Billable Percent ReasonIndicates the reason that the billable percentage of the project resource assignment is less than 100%. For a non-billable assignment, the value is ignored. -
BillablePercentReasonCode: string
Title:
Billable Percent Reason CodeCode that indicates the reason that the billable percentage of the project resource assignment is less than 100%. For a non-billable assignment, the value is ignored. -
FinishDate: string
(date)
Title:
Team Member End DateDate on which the assignment of the project team member to the project is scheduled to end. -
PersonEmail: string
Title:
Team Member EmailMaximum Length:240Email of the person assigned as a team member to the project. -
PersonId: integer
(int64)
Title:
Person IDUnique identifier of the person assigned as a team member to the project. -
PersonName: string
Title:
Team Member NameMaximum Length:240Name of the person assigned as a team member to the project. -
ProjectId: integer
(int64)
Title:
Project IDUnique identifier of the project. -
ProjectRole: string
Title:
Project RoleMaximum Length:240A classification of the relationship that an employee has to a project. You use project roles to define an employee's level of access to project information. Examples are Project Manager, Project Accountant, and Technical Lead. -
ResourceAllocationPercentage: number
Title:
Resource Allocation PercentagePercentage of time for which a resource is assigned to the project. The default value is 100. -
ResourceAssignmentEffortInHours: number
Title:
Resource Assignment Effort in HoursNumber of hours for which a resource is assigned to the project. -
ResourcePlanningBillRate: number
Title:
Resource Planning Bill RateBill Rate of the resource assignment for the planning purpose. If no value is specified, Bill Rate of the resource defined in Project Enterprise Resource is used if it is available in the project currency. -
ResourcePlanningCostRate: number
Title:
Resource Planning Cost RateCost Rate of the resource assignment for the planning purpose. If no value is specified, Cost Rate of the resource defined in Project Enterprise Resource is used if it is available in the project currency. -
StartDate: string
(date)
Title:
Team Member Start DateDate from which the assignment of the team member to the project is scheduled to begin. -
TrackTimeFlag: boolean
Title:
Track TimeMaximum Length:255Indicates whether time cards are expected from internal team members. Valid values are true and false. The default value is false. Information about missing time cards is displayed on the project manager dashboard.
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 : projects-ProjectTeamMembers-item-response
Type:
Show Source
object-
AssignmentType: string
Title:
Assignment TypeIndicates if a request is for a billable or a nonbillable assignment. Examples are BILLABLE, NON-BILLABLE, or leave blank. -
AssignmentTypeCode: string
Title:
Assignment Type CodeCode to indicate if a request is for a billable or a nonbillable assignment. Examples are BILLABLE, NON-BILLABLE, or leave blank. -
BillablePercent: string
Title:
Billable PercentIndicates the percentage of assignment time that is billable for an assignment that is defined as billable assignment. For a non-billable assignment, the value is ignored. Valid values are positive integers between 0 and 100. -
BillablePercentReason: string
Title:
Billable Percent ReasonIndicates the reason that the billable percentage of the project resource assignment is less than 100%. For a non-billable assignment, the value is ignored. -
BillablePercentReasonCode: string
Title:
Billable Percent Reason CodeCode that indicates the reason that the billable percentage of the project resource assignment is less than 100%. For a non-billable assignment, the value is ignored. -
FinishDate: string
(date)
Title:
Team Member End DateDate on which the assignment of the project team member to the project is scheduled to end. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PersonEmail: string
Title:
Team Member EmailMaximum Length:240Email of the person assigned as a team member to the project. -
PersonId: integer
(int64)
Title:
Person IDUnique identifier of the person assigned as a team member to the project. -
PersonName: string
Title:
Team Member NameMaximum Length:240Name of the person assigned as a team member to the project. -
ProjectId: integer
(int64)
Title:
Project IDUnique identifier of the project. -
ProjectRole: string
Title:
Project RoleMaximum Length:240A classification of the relationship that an employee has to a project. You use project roles to define an employee's level of access to project information. Examples are Project Manager, Project Accountant, and Technical Lead. -
ResourceAllocationPercentage: number
Title:
Resource Allocation PercentagePercentage of time for which a resource is assigned to the project. The default value is 100. -
ResourceAssignmentEffortInHours: number
Title:
Resource Assignment Effort in HoursNumber of hours for which a resource is assigned to the project. -
ResourcePlanningBillRate: number
Title:
Resource Planning Bill RateBill Rate of the resource assignment for the planning purpose. If no value is specified, Bill Rate of the resource defined in Project Enterprise Resource is used if it is available in the project currency. -
ResourcePlanningCostRate: number
Title:
Resource Planning Cost RateCost Rate of the resource assignment for the planning purpose. If no value is specified, Cost Rate of the resource defined in Project Enterprise Resource is used if it is available in the project currency. -
StartDate: string
(date)
Title:
Team Member Start DateDate from which the assignment of the team member to the project is scheduled to begin. -
TeamMemberId: integer
(int64)
Title:
Team Member IDRead Only:trueUnique identifier of the team member assigned to the project. -
TrackTimeFlag: boolean
Title:
Track TimeMaximum Length:255Indicates whether time cards are expected from internal team members. Valid values are true and false. The default value is false. Information about missing time cards is displayed on the project manager dashboard.
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.
Examples
Example 1
The following example shows how to create a project team member 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.0.0/projects/300100072576989/child/ProjectTeamMembers
Example 1 Request Body
The following shows an example of the request body in JSON format.
{
"PersonEmail" : "prj_wf_notifications_in_grp@oracle.com",
"ProjectRole" : "Project Team Member",
"StartDate" : "2015-02-11"
}Example 1 Response Body
The following shows an example of the response body in JSON format.
{
"FinishDate": null
"PersonEmail": " prj_wf_notifications_in_grp@oracle.com"
"PersonName": "Charles Smith"
"ProjectId": 300100072576989
"ProjectRole": "Project Team Member"
"StartDate": "2015-02-11"
"TeamMemberId": 300100072711289
-"links": [3]
-0: {
"rel": "self"
...
}
}Example 2
The following example shows how to create project team members by submitting a BATCH operation on the REST resource using cURL.
curl --user ppm_cloud_user -X POST -d @sample_batch_prjtm_payload.json --header "Content-Type: application/vnd.oracle.adf.batch+json" https://your_organization.com:port/fscmRestApi/resources/
Example 2 Request Body
The following shows an example of the request body in JSON format.
{
"parts": [{
"id": "part1",
"path": "/11.13.18.05/projects/300100186320487/child/ProjectTeamMembers",
"operation": "create",
"payload":
{
"PersonName":"Abraham Mason",
"ProjectRole":"Project Manager",
"StartDate" :"2020-08-08",
"TrackTimeFlag":true
}
}, {
"id": "part2",
"path": "/11.13.18.05/projects/300100186320505/child/ProjectTeamMembers",
"operation": "create",
"payload":
{
"PersonId":"53",
"ProjectRole":"Project Manager",
"StartDate" :"2020-08-08",
"TrackTimeFlag":true
}
}
]
}Example 2 Response Body
The following shows an example of the response body in JSON format.
{"parts":[{"id":"part1","path":"https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projects/300100186320487/child/ProjectTeamMembers","operation":"create","payload" : {
"FinishDate" : null,
"PersonEmail" : "prj_wf_in_grp@oracle.com",
"PersonName" : "Abraham Mason",
"ProjectId" : 300100186320487,
"ProjectRole" : "Project Manager",
"StartDate" : "2020-08-08",
"TeamMemberId" : 300100186320529,
"PersonId" : 100010032550827,
"TrackTimeFlag" : true,
"ResourcePlanningCostRate" : null,
"ResourceAllocationPercentage" : null,
"ResourceAssignmentEffortInHours" : null,
"ResourcePlanningBillRate" : null,
"AssignmentType" : null,
"BillablePercentReason" : null,
"AssignmentTypeCode" : null,
"BillablePercentReasonCode" : null,
"BillablePercent" : null,
"links" : [ {
"rel" : "self",
"href" : "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projects/300100186320487/child/ProjectTeamMembers/300100186320529",
"name" : "ProjectTeamMembers",
"kind" : "item"
}, {
"rel" : "canonical",
"href" : "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projects/300100186320487/child/ProjectTeamMembers/300100186320529",
"name" : "ProjectTeamMembers",
"kind" : "item"
}, {
"rel" : "parent",
"href" : "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projects/300100186320487",
"name" : "projects",
"kind" : "item"
} ]
}
}, {
"id" : "part2",
"path" : "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projects/300100186320505/child/ProjectTeamMembers",
"operation" : "create",
"payload" : {
"FinishDate" : null,
"PersonEmail" : "sendmail-test-discard@oracle.com",
"PersonName" : "Amy Marlin",
"ProjectId" : 300100186320505,
"ProjectRole" : "Project Manager",
"StartDate" : "2020-08-08",
"TeamMemberId" : 300100186320531,
"PersonId" : 53,
"TrackTimeFlag" : true,
"ResourcePlanningCostRate" : null,
"ResourceAllocationPercentage" : null,
"ResourceAssignmentEffortInHours" : null,
"ResourcePlanningBillRate" : null,
"AssignmentType" : null,
"BillablePercentReason" : null,
"AssignmentTypeCode" : null,
"BillablePercentReasonCode" : null,
"BillablePercent" : null,
"links" : [ {
"rel" : "self",
"href" : "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projects/300100186320505/child/ProjectTeamMembers/300100186320531",
"name" : "ProjectTeamMembers",
"kind" : "item"
}, {
"rel" : "canonical",
"href" : "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projects/300100186320505/child/ProjectTeamMembers/300100186320531",
"name" : "ProjectTeamMembers",
"kind" : "item"
}, {
"rel" : "parent",
"href" : "https://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projects/300100186320505",
"name" : "projects",
"kind" : "item"
} ]
}
}
]}