PUT
/
subaccounts
/
{id}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of subaccount to return / modify

Body

application/json
name
string
required

Name for the subaccount

Maximum length: 512
email
string | null

Optional email associated with the subaccount. If not specified, will remove the email from the subaccount.

default_portfolio_id
string | null

Optional ID of the default portfolio to use for fulfilling orders placed for this subaccount. If not specified, the parent account's default portfolio will be the default portfolio for the subaccount.

Response

200 - application/json
id
string

Identifier that can be used to retrieve the subaccount details

created_on
string

Timestamp of when the subaccount was created (in UTC)

name
string

Name of the subaccount

Maximum length: 512
email
string | null

Optional email associated with the subaccount.

default_portfolio_id
string | null

Optional ID of the default portfolio used to fulfilling orders placed for this subaccount. If not specified, the parent account's default portfolio is the default portfolio for the subaccount.

logo_url
string | null

Optional URL for the logo used for this subaccount, if any. This URL is for the logo as stored on CNaught's hosting.