See api-docs Menu

Update Account

Updates an existing child account. API requests require authentication and reseller privilege.

Resource URL

https://api.onelogin.com/api/v1/accounts/:id

Header Parameters

Authorization

required

string

Set to Bearer <access_token>.

Set <access_token> to the access token generated using the Generate Token API.

Generate the access token with the API credential pair created using the scope required to call this API. Call this API using the Manage All scope.

id

required

integer

The child account ID.

Request Parameters

account

required

object

Updated account attributes

subscription_state

string

Enter the desired subscription state.

enforce_user_limit

boolean

Choose whether to enforce a user limit.

orgsize

integer

Enter the size of the organization (defaults to 1 if not provided).

from

string

This field is used internally for specific partner signups.

email_activation

boolean

Choose whether to use email activation for users of this account.

Sample Response

Successful; this request generates no response.
Validation failed. (See error XML for details)
The account does not exist.
Missing required account parameters.
API requests require authentication and reseller privilege.

Sample cURL Request

Try it out with a test account first: Start off with using this cURL request with a test OneLogin account and API key. Once you’ve familiarized yourself with the API’s behavior, switch over to using your production OneLogin account and API key.

Be sure to replace placeholder values surrounded by { } with actual values.

curl —v -u {api_key}:x -X PUT -H "Content-Type: application/xml https://api.onelogin.com/api/v1/accounts/{account_id}

Have a Question?

Found a problem or a bug? Submit a support ticket.

Looking for walkthroughs or how-to guides on OneLogin's user and admin features? Check out the documentation in our Knowledge Base.

Have a product idea or request? Share it with us in our Ideas Portal.