Attach a directory entry to many expiries

posthttps://api.expiryedge.com/v1/bulkAttachDirectoryToExpiries
editor or admin60/minJede Methode
Anfrage
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"
}'
Antwort
{
  "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-Parameter

application/json
  • directoryEntryIdstringerforderlich
  • expiryIdsarray of stringerforderlich
    min items: 1 · max items: 1000
  • modestring
    ErlaubtreplaceaddStandard replace

Rückgabe

200
Attach finished. errors is present only when some expiries failed.
  • successbooleanerforderlich
  • modestringerforderlich
    Erlaubtreplaceadd
  • attached_countintegererforderlich
  • attached_itemsarray of objectserforderlich
  • errorsarray of objects

Fehler

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.