To get a list of all the current applications to a campaign, use the following endpoint.
| Method | URI | Headers |
|---|---|---|
| GET | 1.0/campaigns/{id}/applications |
Default |
{
"data": [
{
"id": 114,
"user_id": 1526,
"text": "I'm someone who plays a lone wolf rogue with a dark past",
"created_at": "2020-11-15T10:42:38.000000Z",
"updated_at": "2020-11-15T10:42:38.000000Z",
},
{
"id": 117,
"user_id": 5325,
"text": "Can I join?",
"created_at": "2020-11-15T10:42:38.000000Z",
"updated_at": "2020-11-15T10:42:38.000000Z",
},
{
"id": 118,
"user_id": 6326,
"text": "I'm your old mate bob, pls approve",
"created_at": "2020-11-15T10:42:38.000000Z",
"updated_at": "2020-11-15T10:42:38.000000Z",
}
]
}
To get a single application to a campaign, use the following endpoint.
| Method | URI | Headers |
|---|---|---|
| GET | 1.0/campaigns/{id}/applications/{application.id} |
Default |
{
"data": [
{
"id": 114,
"user_id": 1526,
"text": "I'm someone who plays a lone wolf rogue with a dark past",
"created_at": "2020-11-15T10:42:38.000000Z",
"updated_at": "2020-11-15T10:42:38.000000Z",
},
]
}
To approve an application, use the following endpoint.
| Method | URI | Headers |
|---|---|---|
| POST | 1.0/campaigns/{id}/applications/{application.id}/approve |
Default |
| Parameter | Type | Detail |
|---|---|---|
role_id |
int |
The role to be assigned to the approved user |
reason |
string |
Message for the user who was approved |
{success} Code 200 with JSON message.
To reject an application, use the following endpoint.
| Method | URI | Headers |
|---|---|---|
| POST | 1.0/campaigns/{id}/applications/{application.id}/approve |
Default |
| Parameter | Type | Detail |
|---|---|---|
reason |
string |
Message for the user who was rejected |
{success} Code 200 with JSON message.