Skip to main content

Config for hubtel

Jobs that use the hubtel adaptor may require authentication. A "credential" for the hubtel adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"baseUrl": "https://example.com",
"clientId": "abc123def",
"clientSecret": "ghi456jkl"
}

Full Schema

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"baseUrl": {
"title": "Base URL",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The base URL (http://www.example.com)",
"format": "uri",
"minLength": 1,
"examples": [
"https://example.com"
]
},
"clientId": {
"title": "Client ID",
"type": "string",
"description": "Client ID",
"examples": [
"abc123def"
]
},
"clientSecret": {
"title": "Client Secret",
"type": "string",
"description": "Client Secret",
"writeOnly": true,
"examples": [
"ghi456jkl"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"baseUrl",
"clientId",
"clientSecret"
]
}