Team members
GET https://www.tools.directdemocracys.org/api/team-members/{team_id}
curl --request GET \
--url 'https://www.tools.directdemocracys.org/api/team-members/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://www.tools.directdemocracys.org/api/team-members/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": [
{
"id": 1,
"team_id": 1,
"user_email": "hello@example.com",
"access": {
"read": true,
"create": true,
"update": true,
"delete": false
},
"status": 1,
"datetime": "2022-06-05 14:37:10",
"last_datetime": "2022-06-07 13:04:31"
}
]
}
POST https://www.tools.directdemocracys.org/api/teams
Parameters | Details | Description |
---|---|---|
team_id | Required Integer | - |
user_email | Required String | - |
access | Optional String Array |
read.all create.signatures , create.documents , create.images , create.transcriptions , create.syntheses update.signatures , update.documents , update.images , update.transcriptions , update.syntheses delete.signatures , delete.documents , delete.images , delete.transcriptions , delete.syntheses |
curl --request POST \
--url 'https://www.tools.directdemocracys.org/api/team-members' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'team_id=1' \
--form 'user_email=hello@example.com' \
--url 'https://www.tools.directdemocracys.org/api/team-members' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'team_id=1' \
--form 'user_email=hello@example.com' \
{
"data": {
"id": 1
}
}
POST https://www.tools.directdemocracys.org/api/team-members/{team_member_id}
Parameters | Details | Description |
---|---|---|
access | Optional String Array |
read.all create.signatures , create.documents , create.images , create.transcriptions , create.syntheses update.signatures , update.documents , update.images , update.transcriptions , update.syntheses delete.signatures , delete.documents , delete.images , delete.transcriptions , delete.syntheses |
curl --request POST \
--url 'https://www.tools.directdemocracys.org/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'access[]=create' \
--form 'access[]=update' \
--url 'https://www.tools.directdemocracys.org/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'access[]=create' \
--form 'access[]=update' \
{
"data": {
"id": 1
}
}
DELETE https://www.tools.directdemocracys.org/api/team-members/{team_member_id}
curl --request DELETE \
--url 'https://www.tools.directdemocracys.org/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://www.tools.directdemocracys.org/api/team-members/{team_member_id}' \
--header 'Authorization: Bearer {api_key}' \