Comment on page
Add Custom OAuth
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.
Authorization
Param not Provided
{
"status": "error",
"message": "You must be logged in to do this."
}
{
"success": false,
"error": "The parameter \"name\" is required [error-name-param-not-provided]",
"errorType": "error-name-param-not-provided"
}
Last modified 1yr ago