-
API reference
-
Enrichment
-
Branding
Update brand
PATCH
/accounts/{accountID}/branding
1
2
3
4
5
6
7
8
9
10
11
12
|
curl -X PATCH "https://api.moov.io/accounts/{accountID}/branding" \
-H "Authorization: Bearer {token}" \
--data-raw '{
"colors": {
"dark": {
"accent":"#111111"
},
"light": {
"accent":"#111111"
}
}
}'\
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { SDK } from "openapi";
const sdk = new SDK({
xMoovVersion: "v2024.01.00",
});
async function run() {
const result = await sdk.branding.update({
accountID: "0c0dc4a5-ecd9-4223-810a-a71632980156",
updateBrand: {},
});
console.log(result);
}
run();
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
declare(strict_types=1);
require 'vendor/autoload.php';
use OpenAPI\OpenAPI;
use OpenAPI\OpenAPI\Models\Components;
$sdk = OpenAPI\SDK::builder()
->setXMoovVersion('v2024.01.00')
->build();
$updateBrand = new Components\UpdateBrand();
$response = $sdk->branding->update(
accountID: '0c0dc4a5-ecd9-4223-810a-a71632980156',
updateBrand: $updateBrand
);
if ($response->brandProperties !== null) {
// handle response
}
|
1
2
3
4
5
6
7
8
9
10
11
|
from openapi import SDK
with SDK(
x_moov_version="v2024.01.00",
) as sdk:
res = sdk.branding.update(account_id="0c0dc4a5-ecd9-4223-810a-a71632980156")
# Handle response
print(res)
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package hello.world;
import java.lang.Exception;
import org.openapis.openapi.SDK;
import org.openapis.openapi.models.components.UpdateBrand;
import org.openapis.openapi.models.errors.BrandValidationError;
import org.openapis.openapi.models.errors.GenericError;
import org.openapis.openapi.models.operations.UpdateBrandResponse;
public class Application {
public static void main(String[] args) throws GenericError, BrandValidationError, Exception {
SDK sdk = SDK.builder()
.xMoovVersion("v2024.01.00")
.build();
UpdateBrandResponse res = sdk.branding().update()
.accountID("0c0dc4a5-ecd9-4223-810a-a71632980156")
.updateBrand(UpdateBrand.builder()
.build())
.call();
if (res.brandProperties().isPresent()) {
// handle response
}
}
}
|
1
2
3
4
5
6
7
8
9
10
11
12
|
require 'openapi'
Models = ::OpenApiSDK::Models
s = ::OpenApiSDK::SDK.new(
x_moov_version: 'v2024.01.00',
)
res = s.branding.update(account_id: '0c0dc4a5-ecd9-4223-810a-a71632980156', update_brand: Models::Components::UpdateBrand.new())
unless res.brand_properties.nil?
# handle response
end
|