Add custom OAuth service
URL | Requires Auth | HTTP Method |
---|---|---|
/api/v1/settings.addCustomOAuth |
Yes |
POST |
Argument | Example | Required | Description |
---|---|---|---|
name |
New OAuth |
Required | The name of the Oauth. |
curl --location --request POST 'http://localhost:3000/api/v1/settings.addCustomOAuth' \
--header 'X-Auth-Token: eT9kwwdHSNJX5Sw7Ce_M0IcTuO5HOfDkyZwdXGfgAvy' \
--header 'X-User-Id: Dtx5kwoQJGYQSw3Qh' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "New OAuth"
}'
{
"success": true
}
The following error can occur on the endpoint.
- Authorization: Requires an authentication token for the request to be made.
- Param not provided: Occurs when the
name
parameter is not provided.
{% tabs %} {% tab title=" Authorization" %}
{
"status": "error",
"message": "You must be logged in to do this."
}
{% endtab %}
{% tab title="Param not Provided" %}
{
"success": false,
"error": "The parameter \"name\" is required [error-name-param-not-provided]",
"errorType": "error-name-param-not-provided"
}
{% endtab %} {% endtabs %}