TypeScript
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
});
async function main() {
const response = await client.properties.deleteProperties({
ticket_properties: [
'Workspace',
'property-aaaaaaaaaaaa',
],
});
console.log(response);
}
main();curl -X DELETE 'https://api.periskope.app/v1/properties' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"ticket_properties": [
"Workspace",
"property-aaaaaaaaaaaa"
]
}'{
"success": true,
"message": "Custom properties deleted",
"data": {
"deleted_count": 2,
"properties": [
{
"property_ref": "Workspace",
"property_id": "property-aaaaaaaaaaaa",
"deleted": true,
"reason": null
}
]
}
}Custom Property APIs
Delete Custom Properties
Deletes one or more custom properties, by property_ids or names, via ticket_properties and/or chat_properties.
TypeScript
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
});
async function main() {
const response = await client.properties.deleteProperties({
ticket_properties: [
'Workspace',
'property-aaaaaaaaaaaa',
],
});
console.log(response);
}
main();curl -X DELETE 'https://api.periskope.app/v1/properties' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"ticket_properties": [
"Workspace",
"property-aaaaaaaaaaaa"
]
}'{
"success": true,
"message": "Custom properties deleted",
"data": {
"deleted_count": 2,
"properties": [
{
"property_ref": "Workspace",
"property_id": "property-aaaaaaaaaaaa",
"deleted": true,
"reason": null
}
]
}
}Authorizations
Body
application/json
Was this page helpful?