Skip to content

Commit

Permalink
Merge pull request #418 from permitio/maya/per-10623-clarify-payload-…
Browse files Browse the repository at this point in the history
…example-in-bulk-user-delete-documentation

fix user key to be clear
  • Loading branch information
maya-barak authored Sep 22, 2024
2 parents 5794a27 + 55a73ee commit 66bafc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/how-to/bulk-operations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ curl -X POST https://api.permit.io/v2/facts/{proj_id}/{env_id}/bulk/users \
-H "Content-Type: application/json" \
-d '{
"operations": [{
"key": "user|892179821739812389327",
"key": "jane_doe",
"email": "jane@coolcompany.com",
"first_name": "Jane",
"last_name": "Doe",
Expand All @@ -48,8 +48,8 @@ curl -X PUT https://api.permit.io/v2/facts/{proj_id}/{env_id}/bulk/users
-H "Content-Type: application/json" \
-d '{
"operations": [{
"key": "user|892179821739812389327",
"email": "
"key": "jane_doe",
"email": "test@permit.io",
"first_name": "Jane",
"last_name": "Doe",
"attributes": {}
Expand All @@ -61,7 +61,7 @@ curl -X DELETE https://api.permit.io/v2/facts/{proj_id}/{env_id}/bulk/users
-H "Authorization: Bearer {your_permit_token}" \
-H "Content-Type: application/json" \
-d '{
"idents": ["user|892179821739812389327", ...]
"idents": ["jane_doe", ...]
}'
```

Expand Down

0 comments on commit 66bafc1

Please sign in to comment.