POST api/user?website_id={website_id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
website_id

integer

None.

Body Parameters

m_create_user
NameDescriptionTypeAdditional information
username

string

Required

String length: inclusive between 0 and 50

password

string

Required

firstname

string

String length: inclusive between 0 and 100

lastname

string

String length: inclusive between 0 and 100

status

string

Required

String length: inclusive between 0 and 20

roles

Collection of m_user_role

None.

Request Formats

application/json, text/json

Sample:
{
  "username": "sample string 1",
  "password": "sample string 2",
  "firstname": "sample string 3",
  "lastname": "sample string 4",
  "status": "sample string 5",
  "roles": [
    {
      "id": 1
    },
    {
      "id": 1
    }
  ]
}

application/xml, text/xml

Sample:
<m_create_user xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Features.Models">
  <firstname>sample string 3</firstname>
  <lastname>sample string 4</lastname>
  <password>sample string 2</password>
  <roles>
    <m_user_role>
      <id>1</id>
    </m_user_role>
    <m_user_role>
      <id>1</id>
    </m_user_role>
  </roles>
  <status>sample string 5</status>
  <username>sample string 1</username>
</m_create_user>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.