You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

To update a customer, use the following request:

POST /customers/id/email

Request Parameters

ParameterTypeDefinition
idintegerCustomer ID
emailstringCustomer email

ID The customer ID, of type integer.

Request JSON Objects

Valid JSON parameters include the following.

ParameterTypeRequiredDefinition

subject

stringNoEmail subject
bodystringNoEmail body


Example request

PATCH /customers/1 HTTP/1.1
Content-Type: application/json
Authorization: Bearer f794846b7c26621688e1e06164975b4eae8ce2f6

{
	"subject": "email subject",
	"body": "message content",
}

Response

The LAC REST API returns the standard HTTP response codes described in the following table.

Status CodeDescription
200 OKActivation counters object.
403 ForbiddenInvalid or expired token provided.
404 Not FoundCustomer id does not exist.

Example Response

HTTP/1.1 200 OK
Content-Type: application/json

{
	"message": "Success!"	
}
  • No labels