POST users/{userIdentifier}/profile/photo

Authorization

Access to this endpoint is granted if all following conditions are true:

  • Authenticated user passes at least one of the following conditions: Authenticated user matches identifier given in "userIdentifier, studentIdentifier" uri parameter. Authenticated user is a staff member and is assigned to the same center as a user who matches identifier given in "userIdentifier, studentIdentifier" uri parameter.
  • Authenticated user who is either StaffMember, Student

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userIdentifier

PearsonEnglish.LearningServices.Business.Helpers.UserIdentifier

Required

Body Parameters

PearsonEnglish.LearningServices.Core.Models.Views.PhotoViewModel
NameDescriptionTypeAdditional information
Base64Content

string

None.

Url

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Base64Content": "sample string 1",
  "Url": "sample string 2"
}

Response Information

Resource Description

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.