POST api/StaffManagement/SaveStaff?clientId={clientId}

save staff details. if it'sa new staff then the staff Id will be empty. if it's a new staff then the welcome email is sent containing the new user password

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

string

None.

Body Parameters

StaffEntity
NameDescriptionTypeAdditional information
Id

string

None.

FirstName

string

Required

LastName

string

Required

EmailAddress

string

Required

ProfilePicture

string

None.

Title

string

Required

FeatureAccess

Collection of Feature

None.

StatusMessage

string

None.

StatusDate

date

None.

AccountActive

boolean

None.

AccountIsAdmin

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "EmailAddress": "sample string 4",
  "ProfilePicture": "sample string 5",
  "Title": "sample string 6",
  "FeatureAccess": [
    {
      "Id": "sample string 1",
      "Name": "sample string 2"
    },
    {
      "Id": "sample string 1",
      "Name": "sample string 2"
    }
  ],
  "StatusMessage": "sample string 7",
  "StatusDate": "2025-05-06T13:13:07.7347366Z",
  "AccountActive": true,
  "AccountIsAdmin": true
}

Response Information

Resource Description

a string like "Successfully added new... OR Successfully edited staff..."

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.