curl --request PUT \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Analytics",
"updateName": "Updated Customer Analytics"
}'
{
"name": "Updated Customer Analytics"
}
curl --request PUT \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Analytics",
"updateName": "Updated Customer Analytics"
}'
{
"name": "Updated Customer Analytics"
}
Update the name and settings of an existing Data App.
curl --request PUT \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Analytics",
"updateName": "Updated Customer Analytics"
}'
{
"name": "Updated Customer Analytics"
}
curl --request PUT \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Analytics",
"updateName": "Updated Customer Analytics"
}'
{
"name": "Updated Customer Analytics"
}
PUT https://api.usedatabrain.com/api/v2/data-app
PUT https://api.usedatabrain.com/api/v2/dataApp
Authorization: Bearer service_token_xyz...
application/json for all requests.Content-Type: application/json
Show Finding Data App names
Show Naming guidelines
| Status Code | Description |
|---|---|
200 | OK - Data App updated successfully |
400 | Bad Request - Invalid request parameters |
500 | Internal Server Error - Server error occurred |
| Error Code | HTTP Status | Description |
|---|---|---|
INVALID_REQUEST_BODY | 400 | Missing or invalid parameters |
DATA_APP_NOT_FOUND | 400 | Data App with specified name not found |
AUTHENTICATION_ERROR | 400 | Invalid or missing service token |
INTERNAL_SERVER_ERROR | 500 | Server error |
Get your service token
Identify the Data App
curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app' \
--header 'Authorization: Bearer service_token_xyz...'
Update the Data App
curl --request PUT \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{
"name": "Current Data App Name",
"updateName": "New Data App Name"
}'