/api/v1/oauth/consent (POST)
POST
/api/v1/oauth/consent
const url = 'https://example.com/api/v1/oauth/consent?client_id=example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"accept":true,"scope":"read","locationIds":[]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://example.com/api/v1/oauth/consent?client_id=example' \ --header 'Content-Type: application/json' \ --data '{ "accept": true, "scope": "read", "locationIds": [] }'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”client_id
required
string
scope
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
accept
required
boolean
scope
required
string
locationIds
Array<string>
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
redirectTo
required
string
Examplegenerated
{ "redirectTo": "example"}