Attach a directory entry to many expiries
post
https://api.expiryedge.com/v1/bulkAttachDirectoryToExpirieseditor 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.
directoryEntryIdstringerforderlichexpiryIdsarray of stringerforderlichmin items: 1 · max items: 1000modestringErlaubtreplaceaddStandardreplace
200
Attach finished.
errors is present only when some expiries failed.successbooleanerforderlichmodestringerforderlichErlaubtreplaceaddattached_countintegererforderlichattached_itemsarray of objectserforderlicherrorsarray of objects
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. |
