Create Line Attributes
Create a Line Attribute definition.
POST /api/objects/LineAttributename and scope are required. See the Line Attribute Data Reference for every field, and Draft vs. active for what activation does.
Create a draft (no provisioning)
Create the attribute inactive to register it without provisioning the mapped field. This is the only way to create a Line Attribute in a not-yet-active state.
curl -X POST '{baseUrl}/api/objects/LineAttribute' \
-H 'nue-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "Overage Rate",
"scope": ["Line Editor"],
"mappedFieldApiName": "Overage_Rate__c",
"isActive": false
}'{ "id": "a1Sa5000006aWvZEAU" }Create and activate
Send "isActive": true to create the attribute active. On activation Nue provisions Overage_Rate__c across the five line objects (Quote Line Item, Order Product, Subscription, Asset, Entitlement), adds it to the Fields_Expose_to_Nue field sets, and runs a Business Objects sync. If provisioning fails, the create fails and no record is persisted.
curl -X POST '{baseUrl}/api/objects/LineAttribute' \
-H 'nue-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "Overage Rate",
"scope": ["Line Editor"],
"mappedFieldApiName": "Overage_Rate__c",
"isActive": true
}'Confirm field names first. LineAttribute fields use Nue camelCase apiNames, and the mapped field is a namespaced Salesforce field. Describe the object before writing a payload: GET {baseUrl}/api/metadata/objects/LineAttribute.