Skip to content

Latest commit

 

History

History
45 lines (42 loc) · 1.65 KB

aws-account-assignment-update.md

File metadata and controls

45 lines (42 loc) · 1.65 KB
title position description type endpoint parameters content_markdown right_code_blocks
Update AWS Account Assignment (Version 1)
12
Update an existing AWS account assignment.
put
name required content
id
true
The ID of the AWS account assignment
name required content
owner_id
true
The AWS ID of the assigned account.
name required content
customer_id
true
The ID of the customer to whom the account is assigned. For information on how to get this ID, see [Create Partner Customer](#partner_create-partner-customer).
name required content
payer_account_owner_id
false
The AWS ID of the account whose bills should receive the billing line items for the assigned account.
| Response Code | Description | | -------------------------- | ------------------------ | | `200 OK` | Operation was successful | | `422 Unprocessable Entity` | Unprocessable entity | #### Response header * `Location`: The location of the created AWS account assignment. #### Response content A JSON object that contains these fields: * All the fields in the request * `id`: The ID of the account assignment that was created
code_block title language
curl --request PUT -H 'Authorization: Bearer <your_api_key>' -H 'Content-Type: application/json' -d '{ "owner_id": "000000000001", "customer_id": 1, "payer_account_owner_id": "000000000001" }' 'https://chapi.cloudhealthtech.com/v1/aws_account_assignments/<id>'
Sample Request
bash