Update a region
Allows you to update an existing region in the system. Available to Garmat and customer administrators.
Path parameters
-
The ID of the account the region belongs to
-
The ID of the region to update
Body
The parameters to update the region
-
account_id string
ID of the account to assign the region to
-
name of the region to create
PUT /api/accounts/{account_id}/regions/{id}
curl \
-X PUT http://localhost:4000/api/accounts/{account_id}/regions/{id} \
-d '{"name":"Test Region","account_id":"a9299bca-acc2-4dde-1111-83a08ca12128"}'
Request examples
{
"name": "Test Region",
"account_id": "a9299bca-acc2-4dde-1111-83a08ca12128"
}
Response examples (200)
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Test Region",
"account_id": "a9299bca-acc2-4dde-1111-83a08ca12128"
}
Response examples (200)
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Test Region",
"account_id": "a9299bca-acc2-4dde-1111-83a08ca12128"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}