POST User/MyProfile/Save

Update the profile details for the signed in user.

Requires Authorization

The endpoint requires a bearer token in the http authorization header. For example "bearer 2YotnFZFEjr1zCsicMWpAA"

Request Information

URI Parameters

None.

Body Parameters

A User object containing the updated profile details.

User
NameDescriptionTypeAdditional information
Id

Gets or sets the user's id

integer

None.

Email

Gets or sets the user's email address

string

None.

SendEmailsAsHtml

Gets or sets a value indicating whether an email is sent as Html to the user

boolean

None.

ReceiveEmails

Gets or sets a value indicating whether to send emails to user

boolean

None.

IsBuyer

Gets or sets a value indicating whether user is a Buyer

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "email": "joe.bloggs@org.co.uk",
  "sendEmailsAsHtml": true,
  "receiveEmails": true,
  "isBuyer": true
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IPL.ContractsFinder.BusinessEntities">
  <Email>joe.bloggs@org.co.uk</Email>
  <Id>1</Id>
  <IsBuyer>true</IsBuyer>
  <ReceiveEmails>true</ReceiveEmails>
  <SendEmailsAsHtml>true</SendEmailsAsHtml>
</User>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns HTTP status 200 if successful; otherwise a collection of validation errors with HTTP status code 400.

ServiceResponse
NameDescriptionTypeAdditional information
Code

ServiceResponseCode

None.

Errors

Collection of Error

None.

Response Formats

application/json, text/json

Sample:
{
  "code": "Ok",
  "errors": null
}