Bulk Purposes Upload API (Early Access)
POST
https://app.balkan.id/api/rest/v0/purposes/upload-url
Purposes
BalkanID Purposes Upload CSV Format
Sample CSV
BRN | Purpose Name* | Description* | Pre-Expiry Notification | Department | Job Title | Team | Owner | Birthright | Status | Entity BRNs* |
---|---|---|---|---|---|---|---|---|---|---|
Kubernetes Development | Purpose which is meant for Kubernetes Development | 168h | Software Development | Software Development Engineer | Software | aali@example.com | Department Birthright | brn:bid:balkanid:::01HWBCYJA11R3AA48K5V0DVM00:identity:04giq7jlHzhHyZ-cOvAn4Fn2dNc3bjqZrK4ufzx19Q0, brn:bid:balkanid:::01HWBCYJA11R3AA48K5V0DVM00:identity:04giq7jlHzhHyZ-cOvAn4Fn2dNc3bjqZrK4ufzx19Q1 | ||
Infrastructure DevOps | Purpose which is meant for Infrastucture DevOps | 168h | DevOps | DevOps Engineer | DevOps | mgomez@example.com | Department Birthright | brn:bid:balkanid:::01HWBCYJA11R3AA48K5V0DVM00:identity:04giq7jlHzhHyZ-cOvAn4Fn2dNc3bjqZrK4ufzx19Q2, brn:bid:balkanid:::01HWBCYJA11R3AA48K5V0DVM00:identity:04giq7jlHzhHyZ-cOvAn4Fn2dNc3bjqZrK4ufzx19Q3 | ||
brn:bid:balkanid:::01HWBCYJA11R3AA48K5V0DVM00:purpose:01JH1JR91K9N91Z04PHK2201WQ | Production Oncall | Purpose which is meant for Production Oncall | 2h | Customer Support | Customer Support | Customer Support | xliu@example.com | Team Birthright | brn:bid:balkanid:::01HWBCYJA11R3AA48K5V0DVM00:identity:04giq7jlHzhHyZ-cOvAn4Fn2dNc3bjqZrK4ufzx19Q4 | |
brn:bid:balkanid:::01HWBCYJA11R3AA48K5V0DVM00:purpose:01JH1JR91K9N91Z04PHK2201WS | Local Stack Development | Purpose which is meant for Local Stack Development | 48h | Software Development | Software Development Engineer | Software | fasaud@example.com | Organization Birthright | deleted | brn:bid:balkanid:::01HWBCYJA11R3AA48K5V0DVM00:identity:04giq7jlHzhHyZ-cOvAn4Fn2dNc3bjqZrK4ufzx19Q0 |
Column Definitions
Column Name | Column Description |
---|---|
BRN | Balkan Resource Name |
Purpose Name | Required - Name of the purpose |
Description | Required - Description of the purpose |
Pre-Expiry Notification | Time duration before expiry of purpose request at which a notification is sent out |
Department | Department associated to the purpose |
Job Title | Job Title associated to the purpose |
Team | Team associated to the purpose |
Owner | Owner of the entity |
Birthright | Birthright that the purpose represents |
Status | Used for deleting an existing Purpose ("deleted" or empty) |
Entity BRNs | Required - Comma separated list of Entity BRNs that are granted access to when starting a purpose |
If a BRN is not provided, a new Purpose will be created. If a BRN is provided, an existing Purpose with the BRN will be updated and if an existing Purpose does not exist, a new Purpose will be created with the input BRN.
The only valid values for "Pre-Expiry Notification" are '', '2h', '4h', '24h', '48h', '168h'.
BRNs for the "Entity BRNs" column can be obtained by downloading the Entities using the Bulk Entities Download API.
Upload the CSV file via the pre-signed URL
Below is a summary of the request using
curl
:
PUT
.Request
Header Params
X-Api-Key-ID
string
optional
X-Api-Key-Secret
string
optional
Content-Type
string
optional
Default:
application/json
Request samples
Responses
Modified at 2025-04-10 03:44:22