Skip to content

Upsert Integration

POST
/integrations/
curl --request POST \
--url https://api.occulights.com/api/v1/integrations/ \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "clientId": "example", "clientSecret": "example", "externalTenant": "example", "id": "example", "name": "example" }'

Upserts a new Integration for the specified company

tenant
string

Tenant to upsert integration under

Credential object

Media typeapplication/json
object
clientId
string
clientSecret
string
externalTenant
string
id
string
name
string

Example generated

{
"clientId": "example",
"clientSecret": "example",
"externalTenant": "example",
"id": "example",
"name": "example"
}

Created

Media typeapplication/json
object
clientId
string
clientSecret
string
externalTenant
string
id
string
name
string

Example generated

{
"clientId": "example",
"clientSecret": "example",
"externalTenant": "example",
"id": "example",
"name": "example"
}

Bad Request

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Conflict

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Bad Gateway

Media typeapplication/json