Create project asset assignments
/fscmRestApi/resources/11.13.18.05/projectAssets/{projectAssetsUniqID}/child/ProjectAssetAssignments
Request
- 
                    projectAssetsUniqID(required):  string
                    
                    This is the hash key of the attributes which make up the composite key for the Project Assets resource and used to uniquely identify an instance of Project Assets. The client should not generate the hash key value. Instead, the client should query on the Project Assets collection resource in order to navigate to a specific instance of Project Assets to get the hash key.
- 
                            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.
- application/json
object- 
                
                    
                    AssetAssignmentId: integer
                    
                    
                     (int64) 
                    
                
                
                Title:Asset Assignment IDThe system-generated identifier of the asset assignment transaction. This is a mandatory attribute.
- 
                
                    
                    ProjectAssetId: integer
                    
                    
                     (int64) 
                    
                
                
                Title:Project Asset IDIdentifier of a project asset. This is a mandatory attribute.
- 
                
                    
                    ProjectId: integer
                    
                    
                     (int64) 
                    
                
                
                Title:Project IDThe identifier of the project to which asset assignment is made. You can enter either this attribute, the project name, or the project number while creating an asset assignment.
- 
                
                    
                    ProjectName: string
                    
                    
                     
                    
                
                
                Title:Project NameMaximum Length:240The name of the project to which asset assignment is made. You can enter either this attribute, the project ID, or the project number while creating an asset assignment.
- 
                
                    
                    ProjectNumber: string
                    
                    
                     
                    
                
                
                Title:Project NumberMaximum Length:25The number of the project to which asset assignment is made. You must enter either this attribute, the project ID, or the project name while creating an asset assignment.
- 
                
                    
                    TaskId: integer
                    
                    
                     (int64) 
                    
                
                
                Title:Task IDThe identifier of the task to which asset assignment is made. This is a mandatory attribute. You must enter at least this attribute, or the task name or number while creating an asset assignment. The value is 0 on project-level assignments.
- 
                
                    
                    TaskName: string
                    
                    
                     
                    
                
                
                Title:Task NameMaximum Length:255The name of the task to which asset assignment is made. You must enter at least this attribute, the task ID, or the task number while creating an asset assignment.
- 
                
                    
                    TaskNumber: string
                    
                    
                     
                    
                
                
                Title:Task NumberMaximum Length:100The number of the task to which asset assignment is made. You must enter at least this attribute, the task ID, or the Task Name while creating an asset assignment.
Response
- application/json
Default Response
- 
                                        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.
object- 
                
                    
                    AssetAssignmentId: integer
                    
                    
                     (int64) 
                    
                
                
                Title:Asset Assignment IDThe system-generated identifier of the asset assignment transaction. This is a mandatory attribute.
- 
                
                    
                    links: array
                    
                    
                
                
                    Links
                
                
                Title:LinksThe link relations associated with the resource instance.
- 
                
                    
                    ProjectAssetId: integer
                    
                    
                     (int64) 
                    
                
                
                Title:Project Asset IDIdentifier of a project asset. This is a mandatory attribute.
- 
                
                    
                    ProjectId: integer
                    
                    
                     (int64) 
                    
                
                
                Title:Project IDThe identifier of the project to which asset assignment is made. You can enter either this attribute, the project name, or the project number while creating an asset assignment.
- 
                
                    
                    ProjectName: string
                    
                    
                     
                    
                
                
                Title:Project NameMaximum Length:240The name of the project to which asset assignment is made. You can enter either this attribute, the project ID, or the project number while creating an asset assignment.
- 
                
                    
                    ProjectNumber: string
                    
                    
                     
                    
                
                
                Title:Project NumberMaximum Length:25The number of the project to which asset assignment is made. You must enter either this attribute, the project ID, or the project name while creating an asset assignment.
- 
                
                    
                    TaskId: integer
                    
                    
                     (int64) 
                    
                
                
                Title:Task IDThe identifier of the task to which asset assignment is made. This is a mandatory attribute. You must enter at least this attribute, or the task name or number while creating an asset assignment. The value is 0 on project-level assignments.
- 
                
                    
                    TaskName: string
                    
                    
                     
                    
                
                
                Title:Task NameMaximum Length:255The name of the task to which asset assignment is made. You must enter at least this attribute, the task ID, or the task number while creating an asset assignment.
- 
                
                    
                    TaskNumber: string
                    
                    
                     
                    
                
                
                Title:Task NumberMaximum Length:100The number of the task to which asset assignment is made. You must enter at least this attribute, the task ID, or the Task Name while creating an asset assignment.
arrayLinksobject- 
                
                    
                    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.
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 asset 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/projectAssets/300100181438436/child/ProjectAssetAssignments
Example 1 Request Body
The following shows an example of the request body in JSON format.
 {
"AssetName" : "DemoAsset1",
"ProjectAssetType" : "ESTIMATED",
"ProjectName" : "BAT-PJCBAT-Proj-02",
"AssetDescription" : "DemoAsset1",
"PersonName": "Horton, Connor",
"BookTypeCode": "OPS CORP",
            
            
             "ProjectAssetAssignments" : [ {
     					"ProjectName" : "BAT-PJCBAT-Proj-02",
     					"TaskNumber" : "1.1"
  		},
  		{
     "ProjectName" : "BAT-PJCBAT-Proj-02",
     "TaskNumber" : "1.2"
}]}
Example 1 Response Body
The following shows an example of the response body in JSON format.
{
  "ProjectAssetId": 300100181438436,
  "ProjectId": 100000019394078,
  "ProjectName": "BAT-PJCBAT-Proj-02",
  "ProjectNumber": "BAT-PJCBAT-Proj-02",
  "ProjectAssetType": "ESTIMATED",
  "AssetName": "DemoAsset1",
  "AssetNumber": null,
  "AssetDescription": "DemoAsset1",
  "CapitalEventId": null,
  "EventName": null,
  "CapitalEventNumber": null,
  "EstimatedInServiceDate": null,
  "DatePlacedInService": null,
  "CapitalizedFlag": false,
  "CapitalizedDate": null,
  "CapitalizedCost": 0,
  "TotalAssetCost": 0,
  "ReverseFlag": false,
  "ReversalDate": null,
  "CapitalHoldFlag": false,
  "BookTypeCode": "OPS CORP",
  "AssetCategoryId": null,
  "AssetKeyIdentifier": null,
  "AssetUnits": null,
  "EstimatedCost": null,
  "EstimatedAssetUnits": null,
  "SourceApplication": null,
  "SourceReference": null,
  "LocationId": null,
  "AssignedToPersonId": 29,
  "PersonName": "Horton, Connor",
  "PersonNumber": "29",
  "DepreciateFlag": true,
  "DepreciationExpenseIdentifier": null,
  "AmortizeFlag": false,
  "CostAdjustmentFlag": false,
  "NewMasterFlag": false,
  "BusinessUnitId": 204,
  "BusinessUnitName": "Vision Operations",
  "FixedAssetsAssetId": null,
  "FixedAssetsPeriodName": null,
  "ParentAssetId": null,
  "ParentAssetDescription": null,
  "ParentAssetNumber": null,
  "ManufacturerName": null,
  "ModelNumber": null,
  "TagNumber": null,
  "SerialNumber": null,
  "RetirementTargetAssetId": null,
  "RetirementTargetAssetDescription": null,
  "RetirementTargetAssetNumber": null,
  "LocationCombination": null,
  "AssetKeyCombination": null,
  "AssetCategoryCombination": null,
  "DepreciationExpenseAccountCombination": null,
  "ProjectAssetAssignments": {
    "items": [
      {
        "AssetAssignmentId": 300100181438437,
        "ProjectAssetId": 300100181438436,
        "ProjectId": 100000019394078,
        "ProjectName": "BAT-PJCBAT-Proj-02",
        "ProjectNumber": "BAT-PJCBAT-Proj-02",
        "TaskId": 100000019394094,
        "TaskName": "Footer",
        "TaskNumber": "1.1",
        "links": [
          {
            "rel": "self",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments/300100181438437",
            "name": "ProjectAssetAssignments",
            "kind": "item",
            "properties": {
              "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
          },
          {
            "rel": "canonical",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments/300100181438437",
            "name": "ProjectAssetAssignments",
            "kind": "item"
          },
          {
            "rel": "parent",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436",
            "name": "projectAssets",
            "kind": "item"
          },
          {
            "rel": "lov",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments/300100181438437/lov/ProjectPVOVA",
            "name": "ProjectPVOVA",
            "kind": "collection"
          },
          {
            "rel": "lov",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments/300100181438437/lov/TaskLovVOVA",
            "name": "TaskLovVOVA",
            "kind": "collection"
          }
        ]
      },
      {
        "AssetAssignmentId": 300100181438438,
        "ProjectAssetId": 300100181438436,
        "ProjectId": 100000019394078,
        "ProjectName": "BAT-PJCBAT-Proj-02",
        "ProjectNumber": "BAT-PJCBAT-Proj-02",
        "TaskId": 100000019394095,
        "TaskName": "Foundation",
        "TaskNumber": "1.2",
        "links": [
          {
            "rel": "self",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments/300100181438438",
            "name": "ProjectAssetAssignments",
            "kind": "item",
            "properties": {
              "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
          },
          {
            "rel": "canonical",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments/300100181438438",
            "name": "ProjectAssetAssignments",
            "kind": "item"
          },
          {
            "rel": "parent",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436",
            "name": "projectAssets",
            "kind": "item"
          },
          {
            "rel": "lov",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments/300100181438438/lov/ProjectPVOVA",
            "name": "ProjectPVOVA",
            "kind": "collection"
          },
          {
            "rel": "lov",
            "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments/300100181438438/lov/TaskLovVOVA",
            "name": "TaskLovVOVA",
            "kind": "collection"
          }
        ]
      }
    ],
    "count": 2,
    "hasMore": false,
    "limit": 25,
    "offset": 0,
    "links": [
      {
        "rel": "self",
        "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments",
        "name": "ProjectAssetAssignments",
        "kind": "collection"
      }
    ]
  },
  "links": [
    {
      "rel": "self",
      "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436",
      "name": "projectAssets",
      "kind": "item",
      "properties": {
        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
      }
    },
    {
      "rel": "canonical",
      "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436",
      "name": "projectAssets",
      "kind": "item"
    },
    {
      "rel": "lov",
      "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/lov/ParentAssetNumberVVOVA",
      "name": "ParentAssetNumberVVOVA",
      "kind": "collection"
    },
    {
      "rel": "lov",
      "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/lov/SimplePersonPVOVA",
      "name": "SimplePersonPVOVA",
      "kind": "collection"
    },
    {
      "rel": "lov",
      "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/lov/CapitalEventVOVA",
      "name": "CapitalEventVOVA",
      "kind": "collection"
    },
    {
      "rel": "lov",
      "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/lov/ProjectPVOVA",
      "name": "ProjectPVOVA",
      "kind": "collection"
    },
    {
      "rel": "lov",
      "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/lov/BusinessUnitPVOVA",
      "name": "BusinessUnitPVOVA",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetAssignments",
      "name": "ProjectAssetAssignments",
      "kind": "collection"
    },
    {
      "rel": "child",
      "href": "http://your_organization.com:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100181438436/child/ProjectAssetDff",
      "name": "ProjectAssetDff",
      "kind": "collection"
    }
  ]
}
Example 2
The following example shows how to use a batch operation to create project asset assignments 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/vnd.oracle.adf.batch+json" https://your_organization.com:port/fscmRestApi/resources/11.13.18.05
Example 2 Request Body
The following shows an example of the request body in JSON format.
{
    "parts" : [
        {"id" : "part1", "path" : "/projectAssets/300100211037622/child/ProjectAssetAssignments" , "operation" : "create", "payload" :
            {
       
            "ProjectId": 100000019394078,
            "TaskNumber": "1.2"
            }
        },
        {"id" : "part2", "path" : "/projectAssets/300100211037622/child/ProjectAssetAssignments" , "operation" : "create", "payload" :
            {
        "ProjectId": 100000019394078,
            "TaskNumber": "1.3"
            }
        }
    ]
}
Example 2 Response Body
The following shows an example of the response body in JSON format.
{
    "parts": [
        {
            "id": "part1",
            "path": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments",
            "operation": "create",
            "payload": {
                "AssetAssignmentId": 300100211037624,
                "ProjectAssetId": 300100211037622,
                "ProjectId": 100000019394078,
                "ProjectName": "BAT-PJCBAT-Proj-02",
                "ProjectNumber": "BAT-PJCBAT-Proj-02",
                "TaskId": 100000019394095,
                "TaskName": "Foundation",
                "TaskNumber": "1.2",
                "@context": {
                    "key": "300100211037624",
                    "headers": {
                        "ETag": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A657870000000017704000000017372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C78"
                    },
                    "links": [
                        {
                            "rel": "self",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments/300100211037624",
                            "name": "ProjectAssetAssignments",
                            "kind": "item"
                        },
                        {
                            "rel": "canonical",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments/300100211037624",
                            "name": "ProjectAssetAssignments",
                            "kind": "item"
                        },
                        {
                            "rel": "parent",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622",
                            "name": "projectAssets",
                            "kind": "item"
                        },
                        {
                            "rel": "lov",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments/300100211037624/lov/ProjectPVOVA",
                            "name": "ProjectPVOVA",
                            "kind": "collection"
                        },
                        {
                            "rel": "lov",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments/300100211037624/lov/TaskLovVOVA",
                            "name": "TaskLovVOVA",
                            "kind": "collection"
                        }
                    ]
                }
            }
        },
        {
            "id": "part2",
            "path": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments",
            "operation": "create",
            "payload": {
                "AssetAssignmentId": 300100211037625,
                "ProjectAssetId": 300100211037622,
                "ProjectId": 100000019394078,
                "ProjectName": "BAT-PJCBAT-Proj-02",
                "ProjectNumber": "BAT-PJCBAT-Proj-02",
                "TaskId": 100000019394096,
                "TaskName": "Framing",
                "TaskNumber": "1.3",
                "@context": {
                    "key": "300100211037625",
                    "headers": {
                        "ETag": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A657870000000017704000000017372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C78"
                    },
                    "links": [
                        {
                            "rel": "self",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments/300100211037625",
                            "name": "ProjectAssetAssignments",
                            "kind": "item"
                        },
                        {
                            "rel": "canonical",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments/300100211037625",
                            "name": "ProjectAssetAssignments",
                            "kind": "item"
                        },
                        {
                            "rel": "parent",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622",
                            "name": "projectAssets",
                            "kind": "item"
                        },
                        {
                            "rel": "lov",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments/300100211037625/lov/ProjectPVOVA",
                            "name": "ProjectPVOVA",
                            "kind": "collection"
                        },
                        {
                            "rel": "lov",
                            "href": "http://your_organization:port/fscmRestApi/resources/11.13.18.05/projectAssets/300100211037622/child/ProjectAssetAssignments/300100211037625/lov/TaskLovVOVA",
                            "name": "TaskLovVOVA",
                            "kind": "collection"
                        }
                    ]
                }
            }
        }
    ]
}