Applications
Create an application for instance endpoints.
Create an application for instance endpoints. The request is scoped to the authenticated instance and enforces Endpoint management roles, current versions and Default Application protection.
POST
/
api
/
v1
/
services
Create an application for instance endpoints.
curl --request POST \
--url https://api.revoengine.com/api/v1/services \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "support-desk",
"name": "Support Desk"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: 'support-desk', name: 'Support Desk'})
};
fetch('https://api.revoengine.com/api/v1/services', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/services"
payload = {
"key": "support-desk",
"name": "Support Desk"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
201
⌘I
Create an application for instance endpoints.
curl --request POST \
--url https://api.revoengine.com/api/v1/services \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "support-desk",
"name": "Support Desk"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: 'support-desk', name: 'Support Desk'})
};
fetch('https://api.revoengine.com/api/v1/services', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/services"
payload = {
"key": "support-desk",
"name": "Support Desk"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
