Associate attributes
post
/fscmRestApi/resources/11.13.18.05/fedLedgerOptions/action/populateAttributes
Associate attributes with a ledger options record.
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.
Supported Media Types
- application/vnd.oracle.adf.action+json
Root Schema : schema
Type:
Show Source
object
-
LevelOptionId: string
Unique identifier of the association of the attributes from the ledger options record.
Response
Supported Media Types
- application/json
- application/vnd.oracle.adf.actionresult+json
Default Response
The following table describes the default response for this task.
Root Schema : schema
Type:
Show Source
object
-
result(required): string
The action returns a message indicating the outcome of the custom action result.
Examples
The following example shows how to associate federal attributes by submitting a POST request on the REST resource using cURL.
curl -i -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X POST -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/fedLedgerOptions
Request Body Example
The following shows an example of the request body in JSON format.
{ "LedgerName": "US Safety US", "FederalGroup": "Safety Group", "DocumentNumberEntry": "Automatic", "DocumentNumberType": "Numeric", "DefaultAccountCombination": "0011-1000200010-08003303682-080AS2-0011-000000-0000-D04559937-000000-000000", "USSGLTree": "GL Account US Safety", "ClosingSegments": "Y-Y-Y-Y-Y-Y-Y-Y-Y-Y", }
Response Body Example
The following shows an example of the response body in JSON format.
{ "LevelOptionId": 300100585477503, "LedgerName": "US Safety US", "FederalGroup": "Safety Group", "LedgerGroupId": 300100585274909, "ChartOfAccountsId": 82583, "DocumentNumberEntry": "Automatic", "DocumentNumberType": "Numeric", "DefaultAccountCombination": "0011-1000200010-08003303682-080AS2-0011-000000-0000-D04559937-000000-000000", "USSGLTree": "GL Account US Safety", "ClosingSegments": "Y-Y-Y-Y-Y-Y-Y-Y-Y-Y", "CreatedBy": "username", "CreationDate": "2023-10-19T05:44:12.001+00:00", "LastUpdateDate": "2023-10-30T16:01:58+00:00", "LastUpdatedBy": "username", "LastUpdateLogin": "07DCAD0B1D4328E9E063B06515AC8B5A", "AccountAttributeStatus": "Success", "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/fedLedgerOptions/300100585477503", "name": "fedLedgerOptions", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/fedLedgerOptions/300100585477503", "name": "fedLedgerOptions", "kind": "item" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/fedLedgerOptions/300100585477503/child/fedLedgerOptionBudgetLevels", "name": "fedLedgerOptionBudgetLevels", "kind": "collection" }, { "rel": "child", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/fedLedgerOptions/300100585477503/child/fedLedgerOptionDFF", "name": "fedLedgerOptionDFF", "kind": "collection" } ] }