Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"success": true
}
| Param name | Description |
|---|---|
|
name
required |
Validations:
|
|
hex_code
optional |
Validations:
|
|
details
optional |
Validations:
|
|
cover_image_s3_key
optional |
Validations:
|
|
logo_s3_key
optional |
Validations:
|
|
video_url
optional |
Validations:
|
|
date_from
optional |
Validations:
|
|
date_to
optional |
Validations:
|
|
goal_amount
optional |
Validations:
|
|
available_sums
optional |
Validations:
|
|
status
optional |
Validations:
|
|
sponsorship_opportunity
optional |
Validations:
|
|
workspace_id
required |
Validations:
|
Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"id": ID,
"name": "NAME CAMPAIGN",
"hex_code": "HEX CODE",
"details": "DESCRIPTION",
"cover_image_s3_key": "IMAGE URL",
"logo_s3_key": "LOGO URL",
"video_url": "VIDEO URL",
"date_from": "2023-05-30T00:00:00.000Z",
"date_to": "2024-05-30T00:00:00.000Z",
"goal_amount": 1000,
"available_sums": [
50,
75,
100,
250,
500
],
"prices": [
{
"value": 50,
"price_id": "price_1NYVcMAxd7UNEmWNvN6hIIeq"
},
{
"value": 75,
"price_id": "price_1NYVcNAxd7UNEmWNiRBKBWQV"
},
{
"value": 100,
"price_id": "price_1NYVcNAxd7UNEmWN1V1EeWKi"
},
{
"value": 250,
"price_id": "price_1NYVcNAxd7UNEmWNCa26ZaoV"
},
{
"value": 500,
"price_id": "price_1NYVcOAxd7UNEmWNi7XNhi4J"
}
],
"price_id": "price_1NYVcOAxd7UNEmWN1rUMNm5x",
"sponsorship_opportunity": "<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>",
"workspace_id": 1023,
"workspace_name": "Workspace",
"tax_deductible": false,
"tax_id": null,
"multi_sport": false,
"disable_sponsor": false,
"sponsors_exist": true
"sports": [
{
"id": 1,
"title": "Sport Football",
"details": "Lorem ipsum detatils",
"full_description": "Lorem ipsum full description",
"image_s3_key": null,
"cover_image_s3_key": "test.jpg",
"video_url": "https://youtube.com"
}...,
]
}
| Param name | Description |
|---|---|
|
id
required |
Validations:
|
Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"success": true
}
| Param name | Description |
|---|---|
|
id
required |
Validations:
|
|
campaigns
required |
Validations:
|
|
campaigns[name]
required |
Validations:
|
|
campaigns[hex_code]
optional |
Validations:
|
|
campaigns[details]
optional |
Validations:
|
|
campaigns[cover_image_s3_key]
optional |
Validations:
|
|
campaigns[logo_s3_key]
optional |
Validations:
|
|
campaigns[video_url]
optional |
Validations:
|
|
campaigns[date_from]
optional |
Validations:
|
|
campaigns[date_to]
optional |
Validations:
|
|
campaigns[goal_amount]
optional |
Validations:
|
|
campaigns[available_sums]
optional |
Validations:
|
|
campaigns[status]
optional |
Validations:
|
|
campaigns[sponsorship_opportunity]
optional |
Validations:
|
|
campaigns[workspace_id]
required |
Validations:
|
Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"success": true
}
| Param name | Description |
|---|---|
|
id
required |
Validations:
|