PUT api/v1/admin/accounts/{id}/children/{childrenID}

The method allows you to modify sub account that belongs to the parent account. Each of the body parameters need to have a value. If you wish to update just a few parameters, you will still need to provide the values for all of them and the ones you do not want to change, you can simply assign to existing values.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
childrenID

Account ID of the children

globally unique identifier

Required

id

Account ID of the parent

globally unique identifier

Required

Body Parameters

SubAccountModRequest
NameDescriptionTypeAdditional information
Firstname

Firstname of the account

string

Required

Lastname

Lastname of the account

string

Required

CompanyName

Company name the account is working for

string

Required

MobilePhone

Mobile number of the account

string

Required

Email

Email address of the account

string

Required

Username

Username of the account

string

Required

Password

Password of the account

string

Required

ID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "86e51d05-20a3-486c-adf1-a98ca194c74c",
  "Firstname": "sample string 1",
  "Lastname": "sample string 2",
  "CompanyName": "sample string 3",
  "MobilePhone": "sample string 4",
  "Email": "sample string 5",
  "Username": "sample string 6",
  "Password": "sample string 7"
}

application/xml, text/xml

Sample:
<SubAccountModRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>86e51d05-20a3-486c-adf1-a98ca194c74c</ID>
  <Firstname>sample string 1</Firstname>
  <Lastname>sample string 2</Lastname>
  <CompanyName>sample string 3</CompanyName>
  <MobilePhone>sample string 4</MobilePhone>
  <Email>sample string 5</Email>
  <Username>sample string 6</Username>
  <Password>sample string 7</Password>
</SubAccountModRequest>

Response Information

Resource Description

ResponseOfObject
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfObject

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {}
  }
}

application/xml, text/xml

Sample:
<ResponseOfObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail />
  </ResponseData>
</ResponseOfObject>