Account owner privileges are required.
id | integer | Unique ID of the Account. |
---|---|---|
owner_id | integer | ID of the User who owns the Account. |
plan_id | integer | ID of the associated Plan. |
name | string | Human-readable name. Usually company name. |
third_level_domain | string | Sub-domain. |
time_zone | string | Time zone that was selected during Sign Up. |
public_key | string | Account-wide deployment key. Add this key to your server to make all ReleaseServers from your account to be able to deploy to it. |
suspended | boolean | True if account was suspended due to failed monthly payment. |
updated_at | datetime | Time when the integration was last updated. |
created_at | datetime | Time when the account was first added to the system. |
name | string | Required on updated. |
---|---|---|
time_zone | string | Required on update |
GET /api/account.json
Click to expand…
json http-response{
"account": {
"name": "ilya",
"created_at": "2011/07/20 23:11:17 +0800",
"updated_at": "2011/10/03 13:16:06 +0800",
"third_level_domain": "ilya",
"owner_id": 2,
"id": 2,
"suspended": false,
"time_zone": "International Date Line West",
"plan_id": 24,
"public_key": "ssh-rsa ..."
}
}
GET /api/account.xml
Click to expand…
xml http-response<?xml version="1.0" encoding="UTF-8"?>
<account>
<id type="integer">3875</id>
<owner-id type="integer">53533</owner-id>
<plan-id type="integer">5</plan-id>
<name>Super Account</name>
<third-level-domain>super-account</third-level-domain>
<time-zone>Krasnoyarsk</time-zone>
<suspended type="boolean">false</suspended>
<created-at type="datetime">2009-11-15T16:45:56Z</created-at>
<updated-at type="datetime">2009-11-15T16:45:56Z</updated-at>
<public-key>ssh-rsa ...</public-key>
</account>
See the list of writable attributes at the top of the page. You only need to pass attributes that you want to change.
PUT /api/account.json
{
"account": {
"name": "Shikaka"
}
}
Click to expand…
json http-responseHEAD 200 OK
--OR IF INVALID--
{
"errors": ["Error message"]
}
PUT /api/account.xml
<?xml version="1.0" encoding="UTF-8"?>
<account>
<name>New Company Name</name>
<time-zone>International Date Line West</time-zone>
</account>
Click to expand…
xml http-responseHEAD 200 OK
--OR IF INVALID--
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>Name can't be blank</error>
</errors>