Skip to main content
PATCH
/
directory
/
automation
/
{id}
Update directory automation
curl --request PATCH \
  --url https://api.wirespeed.co/directory/automation/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "enabled": true
}'
{
  "id": "<string>",
  "teamId": "<string>",
  "searchField": "email",
  "search": "<string>",
  "enabled": true,
  "tag": "VIP"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Automation ID

Body

application/json
enabled
boolean
required

Whether to enable or disable the automation

Response

id
string
required

Unique identifier for the automation

teamId
string
required

Team ID that owns this automation

searchField
enum<string>
required

Field to search on for this automation

Available options:
email,
name,
title,
department,
role

Search expression for matching users

enabled
boolean
required

Whether the automation is currently enabled

tag
enum<string>
required

Tag to automatically assign to matching users

Available options:
VIP,
ADMIN,
TECHNICAL,
FINANCIAL,
NHI
I