curl --location --request POST 'https://app.launchdarkly.com/api/v2/members' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"customRoles": [
"revenue-team"
],
"email": "exampleuser@email.com",
"firstName": "Bob",
"inlineRole": [
{
"actions": [
"updateOn"
],
"effect": "allow",
"notActions": [
"updateOn"
],
"notResources": [
"proj/*:env/*:flag/my-flag"
],
"resources": [
"proj/*:env/*:flag/my-flag"
]
}
],
"lastName": "Loblaw",
"role": "writer"
}
]'
{
"_links": {
"next": {
"href": "/api/v2/endpoint",
"type": "application/json"
},
"self": {
"href": "/api/v2/endpoint",
"type": "application/json"
}
},
"items": [
{
"_id": "5a580a01b4ff89217bdf9dc1",
"_lastSeen": 1469326565348,
"_lastSeenMetadata": {
"tokenId": "5fd2a1ee05600316d5cb3e96"
},
"_links": {
"next": {
"href": "/api/v2/endpoint",
"type": "application/json"
},
"self": {
"href": "/api/v2/endpoint",
"type": "application/json"
}
},
"_pendingInvite": true,
"_verified": true,
"customRoles": [
"5a580a01b4ff89217bdf9dc1"
],
"email": "user@launchdarkly.com",
"firstName": "Alan",
"isBeta": true,
"lastName": "Turing",
"role": "writer"
}
],
"totalCount": 0
}