Attach a directory entry to many expiries

posthttps://api.expiryedge.com/v1/bulkAttachDirectoryToExpiries
editor or admin60/minAny method
Request
curl -X POST 'https://api.expiryedge.com/v1/bulkAttachDirectoryToExpiries' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "directoryEntryId": "dir_6Hv3",
  "expiryIds": [
    "exp_4Tq9sLm2",
    "exp_9Pd3kWx1"
  ],
  "mode": "add"
}'
Response
{
  "success": true,
  "mode": "add",
  "attached_count": 2,
  "attached_items": [
    {
      "id": "exp_4Tq9sLm2",
      "name": "Northwind Dental - State Dental License"
    },
    {
      "id": "exp_9Pd3kWx1",
      "name": "Northwind Dental - Malpractice Insurance"
    }
  ]
}

Sets (mode: replace, default) or appends (mode: add) directoryEntryId in each expiry's directory_entry_ids. Max 1000 expiryIds; missing or other-organization expiries are reported in errors.

Body parameters

application/json
  • directoryEntryIdstringrequired
  • expiryIdsarray of stringrequired
    min items: 1 · max items: 1000
  • modestring
    AllowedreplaceaddDefault replace

Returns

200
Attach finished. errors is present only when some expiries failed.
  • successbooleanrequired
  • modestringrequired
    Allowedreplaceadd
  • attached_countintegerrequired
  • attached_itemsarray of objectsrequired
  • errorsarray of objects

Errors

400
The request is missing required fields or contains invalid values.
401
Missing, expired or invalid bearer token.
403
Authenticated, but your role or organization does not allow this action.
404
The record does not exist or is not in your organization.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.