CustomField
Update CustomFields
Changed onUpdate Custom Fields added at Organization level to entities that support them.
put/organizations/{orgId}/customfields
Request
- Base URLhttps://api.m3ter.com
- AuthOAuth 2Authorization codehttps://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize, token URL https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/tokenClient credentialsToken URL /oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
orgIdstring required
UUID of the Organization. The Organization represents your company as a direct customer of the m3ter service.
Request body
Example request
{
"version": 6,
"organization": {
"Org Example 2": "Sample text 2.",
"Org Example 1": "Sample text 1."
},
"account": {},
"accountPlan": {
"New CF Test": "Test Value"
},
"meter": {},
"product": {
"Product CF Example": 42
},
"planTemplate": {},
"plan": {},
"aggregation": {},
"compoundAggregation": {}
}Response
Return the updated CustomFields
Example response
{
"id": "81c49a54-dfcd-4da5-bbf3-d2885ec025dd",
"version": 4,
"organization": {
"Org Example 2": "Sample text 2.",
"Org Example 1": "Sample text. "
},
"product": {
"Product CF Example": 42
},
"account": {},
"accountPlan": {
"New CF Test": "Test Value"
},
"meter": {},
"planTemplate": {},
"plan": {},
"aggregation": {},
"compoundAggregation": {}
}Changes
- breaking
the
request property type changed from no type toobject - breaking
the
response's property type changed from no type toobjectfor status
- breaking
- breaking
the response property
////became optional for the status - info
added the new optional request property
/ - info
added the optional property
/to the response with the status
- breaking