POST public-api/customers/savecustomermodels

This method was created primarily to use with our LDAP sync tool. It takes a list of customers and will update and insert as necessary. This method and savestudentmodels perform the same operation; both write to the customer records. Only the customers supplied in the list are touched. A customer that is active in the Cloud system but absent from the list is left untouched, so to retire a customer, submit that customer with an inactive record status (the LDAP ACCOUNT_DISABLE value is also recognized) rather than omitting them. This method does not perform its own permission check and does not impose a record-count limit of its own, so the caller is responsible for keeping each batch to a reasonable size.



Request Information

URI Parameters

None.

Body Parameters

Collection of Dictionary of Object [key] and Object [value]

Request Formats

application/json

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.




Response Information

Resource Description

WaspResultOfListOfInvariantCultureIgnoreCaseDictionary
NameDescriptionTypeAdditional information
Data

Collection of Dictionary of Object [key] and Object [value]

None.

Messages

Collection of WtResult

None.

BatchNumber

integer

None.

HasError

boolean

None.

HasHttpError

boolean

None.

HasMessage

boolean

None.

HasSuccessWithMoreDataRemaining

boolean

None.

TotalRecordsLongCount

integer

None.

Response Formats

application/json

Sample:
{
  "Data": null,
  "Messages": [
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    },
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    }
  ],
  "BatchNumber": 1,
  "HasError": false,
  "HasHttpError": false,
  "HasMessage": true,
  "HasSuccessWithMoreDataRemaining": false,
  "TotalRecordsLongCount": 1
}